Aargh. "sql not correctly completed comand" - something wrong with my join...
Select *.FROM table1 t1
Join table2 t2 on t1.pkid = t2.pkid
These aren't my real table names, but this structure is sufficient to generate my mistake. Clearly I can't join syntax. After Google search, I tried various permutations, with the join condition in parens, prefacing the names table with the schema and stuff like that. No change - always get ora00933.
The only thing that worked was comma-ing, the tables and put the join condition in a where clause clause. Who doesn't for me in the end because the full query I need joined much more and it'll look terrible like that.
Little help on just a simple inner join?
Thank you!
Edited by: sherifffruitfly January 4, 2011 10:18
The ANSI join syntax was introduced in Oracle in version 9.1. Your version has been out of favor for a dozen years, and is the latest version of Oracle 11.2.
Unless you can move to something of this century, to do joins in the where clause.
John
Tags: Database
Similar Questions
-
XML request error. ORA-00933: SQL not correctly completed command.
Hi all
My Version of the database: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0.
CREATE table test (name VARCHAR2 (3), identification number);
Insert test values ('abc', 61);
Insert test values ('def', 46);
Select table_name,
column_name,
search_string 'abc ',.
result
CLO, xmltable (('ora: view("'||))) table_name |' ") / RANK /' | column_name | "[ora:contains (text,' %'|)] "abc". "% ») > 0]')
result varchar2 columns (10) path '.'
)
where table_name in ('TEST');
and I get: ORA-00933: SQL not correctly completed command it points on ' * xmltable *'SQL> SELECT extractValue(value(t), '/CustomerInformation/Customerid') "Customerid" 2 , extractValue(value(t), '/CustomerInformation/CustomerName') "CustomerName" 3 , extractValue(value(t), '/CustomerInformation/Country') "Country" 4 FROM xml_document_table x 5 , TABLE( 6 XMLSequence( 7 extract(x.xml_document, '/Customer/CustomerInformation') 8 ) 9 ) t 10 ; Customerid CustomerName Country --------------------- ------------------------ ------------- 1 xxxx 4 2 yyyy 5
-
ORA-00933: SQL not correctly completed command.
Hello
I get the following error:-ORA-00933: SQL not correctly completed command
Edited by: 872435 January 6, 2012 06:09select (select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, count(*) rows_ok, 0 rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id from c2uv_sys_map e where e.row_err_id=0 group by e.upload_file_id UNION select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, count(*) rows_ok, 0 rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id from c2uv_sys_map e group by e.upload_file_id UNION select (select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, 0 rows_ok, count(*) rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id from c2uv_sys_map e where e.row_err_id=2 group by e.upload_file_id UNION select (select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, 0 rows_ok, 0 rows_duplicate, count(*) rows_rejected, 0 rows_bad, e.upload_file_id from c2uv_sys_map e where (e.row_err_id =1) or (e.row_err_id >2) group by e.upload_file_id UNION select (select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, 0 rows_ok, 0 rows_duplicate, 0 rows_rejected, u.no_of_bad_rows rows_bad, t.upload_file_id from c2uv_sys_map t right outer join chn_upload u on t.upload_file_id = u.config_id inner join chn_upload_config c on u.config_id = c.config_id inner join chc_data_filetype f on c.data_filetype_id = f.data_filetype_id where f.data_filetype_id = 11 group by u.no_of_bad_rows, t.upload_file_id
It seems that this parenthesis corresponds to nothing:
select (select max(x.exec_id) from log_exec x) exec_id, 'c2uv_sys_map' table_name, 'All' upload_file_name, count(*) rows_ok, 0 rows_duplicate, 0 rows_rejected, 0 rows_bad, e.upload_file_id from c2uv_sys_map e where e.row_err_id = 0 group by e.upload_file_id UNION select max(x.exec_id) from log_exec x) -- <-- Here ...
-
PL/SQL: ORA-00933: SQL not correctly completed command
Hello
CREATE or REPLACE PROCEDURE SAI (STATUS_CODE OUT varchar2)
AS
BEGIN
Select ename emp in STATUS_CODE where empno = '7369';
END SAI;
I get the error "* not correctly completed SQL command * ' when executing this procedure. Help, please.Hello
user10503747 wrote:
HelloCREATE or REPLACE PROCEDURE SAI (STATUS_CODE OUT varchar2)
AS
BEGIN
Select ename emp in STATUS_CODE where empno = '7369';
END SAI;I get the error "* not correctly completed SQL command * ' when executing this procedure. Help, please.
I want to tell u that you made mistake of bases...
First you write a wrong syntax for your sql statement
Select ename emp in STATUS_CODE where empno = '7369';
its should be like
Select ename from STATUS_CODE from emp where empno = '7369';
your entire procedure will be as
CREATE OR REPLACE PROCEDURE SAI (STATUS_CODE out varchar2) AS BEGIN select last_name into STATUS_CODE from employees where employee_id=102; END SAI ;
and after that, you must declare a variable of liaison
Return_name VARIABLE VARCHAR2 (30);
Then exceute your interior
exec sai(:return_name);
print your value of variable binding
print :return_name; RETURN_NAME -------------------------------- De Haan
Regards
UMI
-
Something wrong with this JOIN?
DB version: 11.2
I'm trying to join the tables TBS_FILE_INFO and FREE_SPACE_INFO below.
Info on the data stored in these 2 tables:
==========================================
TBS_FILE_INFO is a kind of a master table that stores information about each file and its size in a tablespace. Almost all 30 GB in size.
Each file consists of several extensions. FREE_SPACE_INFO table stores information about the free space left in extensions in a file.
My requirement is simple. I just need that information returned by 2 queries below (but a query).
SQL > select sum (SIZEGB) TotalAllocatedGB from tbs_file_info where nom_tablespace = 'SIEBEL_TABLES ';
TOTALALLOCATEDGB
----------------
450
SQL > select sum (FREEGB) free_gb from free_space_info where nom_tablespace = 'SIEBEL_TABLES ';
FREE_GB
----------
206.999329
To get this data in a single request, I associate myself with these 2 tables using the FILE_ID column.
Output is shown below.
The FREE_GB info is correct, but the value of TotalAllocatedGB 10170 (indicated in red below) is not correct . It should be 450 GB as shown above. No idea why?
Select
TFI.tablespace_name,
Sum (SIZEGB) TotalAllocatedGB,
the sum of Free_GB (FREEGB)
from tbs_file_info INNER JOIN free_space_info ISP tfi
on (tfi.file_id = fsi.file_id)
where tfi.tablespace_name = 'SIEBEL_TABLES. '
and tfi.tablespace_name = fsi.tablespace_name - it's condition AND no difference
Tfi.tablespace_name group;
NOM_TABLESPACE TOTALALLOCATEDGB FREE_GB
------------------------------ ---------------- ----------
10170 206.999329 SIEBEL_TABLES
-Here is the data
-What is there all I could attach .sql files to this post? I couldn't fix the photo option and video
SQL > select * from tbs_file_info;
FILE_ID SIZEGB NOM_TABLESPACE
------------------------------ ---------- ----------
18 30 SBL_S_ORDER_ITEM_IDX
53 5 SBL_S_ORDER_ITEM_IDX
52 30 SBL_S_ORDER_ITEM_IDX
63 30 SIEBEL_TABLES
64 30 SIEBEL_TABLES
74 30 SIEBEL_TABLES
66 30 SIEBEL_TABLES
67 30 SIEBEL_TABLES
68 30 SIEBEL_TABLES
SIEBEL_TABLES 69 30
SIEBEL_TABLES 70 30
71 30 SIEBEL_TABLES
72 30 SIEBEL_TABLES
73 30 SIEBEL_TABLES
62 30 SIEBEL_TABLES
61 30 SIEBEL_TABLES
7 30 SIEBEL_TABLES
SIEBEL_TABLES 65 30
18 selected lines.
SQL > select * from free_space_info;
FILE_ID EXTENT_ID FREEGB NUM_OF_BLOCKS NOM_TABLESPACE
------------------------------ ---------- ---------- ---------- -------------
18 2031744 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 1523840 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 1015936 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 508032 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 333312 1.33300781 SBL_S_ORDER_ITEM_IDX 174720
18 3047552 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 2539648 SBL_S_ORDER_ITEM_IDX 3.875 507904
18 3555456 2.87402344 SBL_S_ORDER_ITEM_IDX 376704
52 3555456 2.87402344 SBL_S_ORDER_ITEM_IDX 376704
52 3047552 SBL_S_ORDER_ITEM_IDX 3.875 507904
52 2031744 SBL_S_ORDER_ITEM_IDX 3.875 507904
52 1523840 SBL_S_ORDER_ITEM_IDX 3.875 507904
52 1015936 SBL_S_ORDER_ITEM_IDX 3.875 507904
52 508032 SBL_S_ORDER_ITEM_IDX 3.875 507904
52 333824 1.32910156 SBL_S_ORDER_ITEM_IDX 174208
52 326528 128.000976563 SBL_S_ORDER_ITEM_IDX
52 248184 8.000061035 SBL_S_ORDER_ITEM_IDX
52 2539648 SBL_S_ORDER_ITEM_IDX 3.875 507904
53 12800 3.77832031 SBL_S_ORDER_ITEM_IDX 495232
53 508032 1.12402344 SBL_S_ORDER_ITEM_IDX 147328
SIEBEL_TABLES 7 1542144.00390625 512
SIEBEL_TABLES 7 2246528.000976563 128
SIEBEL_TABLES 7 2247680.03515625 4608
SIEBEL_TABLES 7 2586112.0625 8192
SIEBEL_TABLES 7 2703872.0625 8192
SIEBEL_TABLES 7 2824192.0625 8192
SIEBEL_TABLES 7 581504.000976563 128
SIEBEL_TABLES 7 1070720.002929688 384
SIEBEL_TABLES 61 2806272.0625 8192
61 571776 128.000976563 SIEBEL_TABLES
SIEBEL_TABLES 61 2692608.0625 8192
SIEBEL_TABLES 61 2576000.061523438 8064
SIEBEL_TABLES 61 1062272.000976563 128
62 538752 384.002929688 SIEBEL_TABLES
62 1395968 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 62 1756032.000976563 128
62 2090624 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 62 2554880.02734375 3584
SIEBEL_TABLES 62 2788352.0625 8192
SIEBEL_TABLES 62 2667008.0625 8192
SIEBEL_TABLES 63 642176.002929688 384
63 2541312 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 63 2543616.04296875 5632
SIEBEL_TABLES 63 2657792.0625 8192
SIEBEL_TABLES 63 2771968.0625 8192
SIEBEL_TABLES 64 2644608.030273438 3968
64 2302208 256.001953125 SIEBEL_TABLES
64 1965952 128.000976563 SIEBEL_TABLES
64 1108864 128.000976563 SIEBEL_TABLES
64 619904 128.000976563 SIEBEL_TABLES
SIEBEL_TABLES 64 2759680.0625 8192
65 3811456 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 65 3812736.000976563 128
SIEBEL_TABLES 65 3813248.000976563 128
65 3813760 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 65 3814656.000976563 128
SIEBEL_TABLES 65 3814912.000976563 128
SIEBEL_TABLES 65 3815680.000976563 128
SIEBEL_TABLES 65 3815936.000976563 128
65 3816704 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 65 3826432.000976563 128
SIEBEL_TABLES 65 3827328.000976563 128
SIEBEL_TABLES 65 3827968.000976563 128
SIEBEL_TABLES 65 3828352.000976563 128
65 3876992 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 65 3926528.04296875 5632
65 3810432 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 65 3801472.000976563 128
SIEBEL_TABLES 65 3801216.000976563 128
65 3792640 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 65 3792384.000976563 128
SIEBEL_TABLES 65 3792000.000976563 128
SIEBEL_TABLES 65 3791616.000976563 128
65 3791232 256.001953125 SIEBEL_TABLES
65 3790592 256.001953125 SIEBEL_TABLES
65 3789952 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 65 3788416.000976563 128
SIEBEL_TABLES 65 3788032.000976563 128
SIEBEL_TABLES 65 3787520.000976563 128
SIEBEL_TABLES 65 3787264.000976563 128
SIEBEL_TABLES 65 3302912.0078125 1024
SIEBEL_TABLES 65 3295744.0078125 1024
SIEBEL_TABLES 65 3279360.0078125 1024
SIEBEL_TABLES 65 3266048.0078125 1024
SIEBEL_TABLES 65 3257856.0078125 1024
SIEBEL_TABLES 65 3216896.0078125 1024
65 3192832 512.00390625 SIEBEL_TABLES
65 3042944 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 65 128.002929688 384
65 667264 384.002929688 SIEBEL_TABLES
SIEBEL_TABLES 66 61952.00390625 512
66 65536 512.00390625 SIEBEL_TABLES
66 78336 512.00390625 SIEBEL_TABLES
66 80896 512.00390625 SIEBEL_TABLES
66 92672 512.00390625 SIEBEL_TABLES
66 96256 512.00390625 SIEBEL_TABLES
66 98816 512.00390625 SIEBEL_TABLES
SIEBEL_TABLES 66 102400.000976563 128
SIEBEL_TABLES 66 109056.0078125 1024
66 132608 1024.0078125 SIEBEL_TABLES
66 164352 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 180736.0078125 1024
66 187904 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 204288.0078125 1024
SIEBEL_TABLES 66 218624.0078125 1024
66 224768 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 264704.0078125 1024
SIEBEL_TABLES 66 271360.0078125 1024
SIEBEL_TABLES 66 293888.0078125 1024
66 296192 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 66 300544.0078125 1024
66 305664 512.00390625 SIEBEL_TABLES
SIEBEL_TABLES 66 307200.01171875 1536
66 312832 1536.01171875 SIEBEL_TABLES
66 315392 512.00390625 SIEBEL_TABLES
66 327168 512.00390625 SIEBEL_TABLES
SIEBEL_TABLES 66 360448.0078125 1024
SIEBEL_TABLES 66 361728.000976563 128
SIEBEL_TABLES 66 365056.000976563 128
SIEBEL_TABLES 66 365312.000976563 128
SIEBEL_TABLES 66 366592.000976563 128
SIEBEL_TABLES 66 366848.000976563 128
SIEBEL_TABLES 66 367104.000976563 128
SIEBEL_TABLES 66 367360.000976563 128
SIEBEL_TABLES 66 369664.008789063 1152
SIEBEL_TABLES 66 370944.000976563 128
SIEBEL_TABLES 66 373248.0078125 1024
66 377344 1024.0078125 SIEBEL_TABLES
66 380928 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 384512.0078125 1024
SIEBEL_TABLES 66 396288.0078125 1024
SIEBEL_TABLES 66 408064.0078125 1024
SIEBEL_TABLES 66 411136.0078125 1024
SIEBEL_TABLES 66 415744.0078125 1024
SIEBEL_TABLES 66 418304.0078125 1024
SIEBEL_TABLES 66 423424.0078125 1024
SIEBEL_TABLES 66 452096.0078125 1024
SIEBEL_TABLES 66 463360.0078125 1024
SIEBEL_TABLES 66 476672.0078125 1024
SIEBEL_TABLES 66 478208.0078125 1024
66 484352 2048.015625 SIEBEL_TABLES
66 491520 2048.015625 SIEBEL_TABLES
66 500736 2048.015625 SIEBEL_TABLES
66 527872 2048.015625 SIEBEL_TABLES
SIEBEL_TABLES 66 543744.0078125 1024
SIEBEL_TABLES 66 545792.0078125 1024
66 569344 2048.015625 SIEBEL_TABLES
66 576512 2048.015625 SIEBEL_TABLES
SIEBEL_TABLES 66 600064.0078125 1024
SIEBEL_TABLES 66 603136.0078125 1024
SIEBEL_TABLES 66 609280.0078125 1024
SIEBEL_TABLES 66 616448.0078125 1024
SIEBEL_TABLES 66 623616.0078125 1024
SIEBEL_TABLES 66 671232.0078125 1024
SIEBEL_TABLES 66 680448.0078125 1024
SIEBEL_TABLES 66 689664.0078125 1024
66 705024 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 720896.0078125 1024
SIEBEL_TABLES 66 728064.0078125 1024
66 742400 1024.0078125 SIEBEL_TABLES
SIEBEL_TABLES 66 775168.0078125 1024
SIEBEL_TABLES 66 791552.0078125 1024
SIEBEL_TABLES 66 1262976.000976563 128
SIEBEL_TABLES 66 1263360.000976563 128
SIEBEL_TABLES 66 1263872.000976563 128
SIEBEL_TABLES 66 1264384.000976563 128
SIEBEL_TABLES 66 1264640.000976563 128
SIEBEL_TABLES 66 1264896.000976563 128
SIEBEL_TABLES 66 1265536.000976563 128
SIEBEL_TABLES 66 1266176.000976563 128
SIEBEL_TABLES 66 1266560.000976563 128
SIEBEL_TABLES 66 1266816.000976563 128
66 1267072 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 66 1267968.000976563 128
66 1277312 128.000976563 SIEBEL_TABLES
66 1278336 256.001953125 SIEBEL_TABLES
66 1278720 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 66 1279488.000976563 128
SIEBEL_TABLES 66 1279744.000976563 128
SIEBEL_TABLES 66 1280384.000976563 128
66 1280640 128.000976563 SIEBEL_TABLES
SIEBEL_TABLES 66 1281024.000976563 128
SIEBEL_TABLES 66 1281664.000976563 128
66 1282304 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 66 1282944.000976563 128
SIEBEL_TABLES 66 1283200.000976563 128
SIEBEL_TABLES 66 1283584.000976563 128
SIEBEL_TABLES 66 1284480.000976563 128
SIEBEL_TABLES 66 1285120.000976563 128
SIEBEL_TABLES 66 1285376.000976563 128
SIEBEL_TABLES 66 1285760.000976563 128
66 1376512 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 66 1523840.002929688 384
SIEBEL_TABLES 66 2031744.002929688 384
66 2808320 1.82519531 SIEBEL_TABLES 239232
66 3047552 SIEBEL_TABLES 3.875 507904
66 3555456 2.87402344 SIEBEL_TABLES 376704
SIEBEL_TABLES 66 2711376.000061035 8
SIEBEL_TABLES 66 2711384.000061035 8
SIEBEL_TABLES 66 2711352.000061035 8
SIEBEL_TABLES 66 2711360.000061035 8
SIEBEL_TABLES 66 2711368.000061035 8
SIEBEL_TABLES 66 2711328.000061035 8
SIEBEL_TABLES 66 2711336.000061035 8
SIEBEL_TABLES 66 2711344.000061035 8
SIEBEL_TABLES 66 2711320.000061035 8
67 89472 128.000976563 SIEBEL_TABLES
67 91008 128.000976563 SIEBEL_TABLES
67 91392 128.000976563 SIEBEL_TABLES
67 91776 128.000976563 SIEBEL_TABLES
67 93056 128.000976563 SIEBEL_TABLES
67 93312 128.000976563 SIEBEL_TABLES
67 93696 128.000976563 SIEBEL_TABLES
67 93952 256.001953125 SIEBEL_TABLES
67 94464 128.000976563 SIEBEL_TABLES
67 94720 128.000976563 SIEBEL_TABLES
67 95104 128.000976563 SIEBEL_TABLES
SIEBEL_TABLES 67 95360.000976563 128
67 95616 128.000976563 SIEBEL_TABLES
67 95872 128.000976563 SIEBEL_TABLES
67 96640 128.000976563 SIEBEL_TABLES
67 97408 384.002929688 SIEBEL_TABLES
67 98304 128.000976563 SIEBEL_TABLES
67 98560 256.001953125 SIEBEL_TABLES
67 99456 384.002929688 SIEBEL_TABLES
67 100096 128.000976563 SIEBEL_TABLES
67 101376 128.000976563 SIEBEL_TABLES
67 101760 128.000976563 SIEBEL_TABLES
67 102528 256.001953125 SIEBEL_TABLES
67 103168 128.000976563 SIEBEL_TABLES
67 103552 128.000976563 SIEBEL_TABLES
67 104192 128.000976563 SIEBEL_TABLES
67 104960 128.000976563 SIEBEL_TABLES
67 105984 128.000976563 SIEBEL_TABLES
67 106752 128.000976563 SIEBEL_TABLES
67 248192 128.000976563 SIEBEL_TABLES
67 508032 384.002929688 SIEBEL_TABLES
67 1015936 384.002929688 SIEBEL_TABLES
67 1632640 3.04492188 SIEBEL_TABLES 399104
67 2031744 SIEBEL_TABLES 3.875 507904
67 2539648 SIEBEL_TABLES 3.875 507904
67 3047552 SIEBEL_TABLES 3.875 507904
67 3555456 2.87402344 SIEBEL_TABLES 376704
67 1537936 8.000061035 SIEBEL_TABLES
67 1537792 8.000061035 SIEBEL_TABLES
67 1537800 8.000061035 SIEBEL_TABLES
67 1537920 8.000061035 SIEBEL_TABLES
67 1537928 8.000061035 SIEBEL_TABLES
67 1537680 8.000061035 SIEBEL_TABLES
67 1537688 8.000061035 SIEBEL_TABLES
67 1537696 8.000061035 SIEBEL_TABLES
67 1537176 8.000061035 SIEBEL_TABLES
67 1537664 8.000061035 SIEBEL_TABLES
67 1537672 8.000061035 SIEBEL_TABLES
67 1523840 128.000976563 SIEBEL_TABLES
67 1537168 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 68 128.002929688 384
SIEBEL_TABLES 68 508032.002929688 384
68 1176992 2.64624023 SIEBEL_TABLES 346848
68 1523840 SIEBEL_TABLES 3.875 507904
68 2031744 SIEBEL_TABLES 3.875 507904
68 2539648 SIEBEL_TABLES 3.875 507904
68 3047552 SIEBEL_TABLES 3.875 507904
68 3555456 2.87402344 SIEBEL_TABLES 376704
SIEBEL_TABLES 68 1016064.000976563 128
SIEBEL_TABLES 69 128.002929688 384
69 849408 1.27050781 SIEBEL_TABLES 166528
69 1015936 SIEBEL_TABLES 3.875 507904
69 1523840 SIEBEL_TABLES 3.875 507904
69 2031744 SIEBEL_TABLES 3.875 507904
69 2539648 SIEBEL_TABLES 3.875 507904
69 3047552 SIEBEL_TABLES 3.875 507904
69 3555456 2.87402344 SIEBEL_TABLES 376704
69 508160 128.000976563 SIEBEL_TABLES
SIEBEL_TABLES 70 128.002929688 384
70 607232 3.11816406 SIEBEL_TABLES 408704
70 1015936 SIEBEL_TABLES 3.875 507904
70 1523840 SIEBEL_TABLES 3.875 507904
70 2031744 SIEBEL_TABLES 3.875 507904
70 2539648 SIEBEL_TABLES 3.875 507904
70 3047552 SIEBEL_TABLES 3.875 507904
70 3555456 2.87402344 SIEBEL_TABLES 376704
SIEBEL_TABLES 70 530056.000061035 8
70 530064 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 70 529824.000061035 8
SIEBEL_TABLES 70 530048.000061035 8
SIEBEL_TABLES 70 508032.000976563 128
71 435456 256.001953125 SIEBEL_TABLES
SIEBEL_TABLES 71 436736.543945313 71296
71 508032 SIEBEL_TABLES 3.875 507904
71 1015936 SIEBEL_TABLES 3.875 507904
71 1523840 SIEBEL_TABLES 3.875 507904
71 2031744 SIEBEL_TABLES 3.875 507904
71 2539648 SIEBEL_TABLES 3.875 507904
71 3047552 SIEBEL_TABLES 3.875 507904
71 3555456 2.87402344 SIEBEL_TABLES 376704
SIEBEL_TABLES 71 128.000976563 128
SIEBEL_TABLES 71 363896.000061035 8
72 373376 1.02734375 SIEBEL_TABLES 134656
508032 72 SIEBEL_TABLES 3.875 507904
1015936 72 SIEBEL_TABLES 3.875 507904
1523840 72 SIEBEL_TABLES 3.875 507904
2031744 72 SIEBEL_TABLES 3.875 507904
2539648 72 SIEBEL_TABLES 3.875 507904
3047552 72 SIEBEL_TABLES 3.875 507904
72 3555456 2.87402344 SIEBEL_TABLES 376704
72 259872 8.000061035 SIEBEL_TABLES
72 259880 8.000061035 SIEBEL_TABLES
72 259888 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 72 384.000976563 128
72 259856 8.000061035 SIEBEL_TABLES
72 259864 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 72 256.000976563 128
72 259840 8.000061035 SIEBEL_TABLES
72 259848 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 72 128.000976563 128
72 259616 8.000061035 SIEBEL_TABLES
73 315776 128.000976563 SIEBEL_TABLES
73 316928 1.45800781 SIEBEL_TABLES 191104
73 508032 SIEBEL_TABLES 3.875 507904
73 1015936 SIEBEL_TABLES 3.875 507904
73 1523840 SIEBEL_TABLES 3.875 507904
73 2031744 SIEBEL_TABLES 3.875 507904
73 2539648 SIEBEL_TABLES 3.875 507904
73 3047552 SIEBEL_TABLES 3.875 507904
73 3555456 2.87402344 SIEBEL_TABLES 376704
73 195512 8.000061035 SIEBEL_TABLES
73 195488 8.000061035 SIEBEL_TABLES
73 195496 8.000061035 SIEBEL_TABLES
73 195504 8.000061035 SIEBEL_TABLES
SIEBEL_TABLES 73 128.000976563 128
73 195464 8.000061035 SIEBEL_TABLES
73 195472 8.000061035 SIEBEL_TABLES
73 195480 8.000061035 SIEBEL_TABLES
73 195248 8.000061035 SIEBEL_TABLES
73 195256 8.000061035 SIEBEL_TABLES
73 195456 8.000061035 SIEBEL_TABLES
73 195240 8.000061035 SIEBEL_TABLES
74 258304 256.001953125 SIEBEL_TABLES
74 267776 1.83300781 SIEBEL_TABLES 240256
74 508032 SIEBEL_TABLES 3.875 507904
74 1015936 SIEBEL_TABLES 3.875 507904
74 1523840 SIEBEL_TABLES 3.875 507904
74 2031744 SIEBEL_TABLES 3.875 507904
74 2539648 SIEBEL_TABLES 3.875 507904
74 3047552 SIEBEL_TABLES 3.875 507904
74 3555456 2.87402344 SIEBEL_TABLES 376704
74 131344 8.000061035 SIEBEL_TABLES
74 130536 8.000061035 SIEBEL_TABLES
74 130544 8.000061035 SIEBEL_TABLES
74 131328 8.000061035 SIEBEL_TABLES
74 131336 8.000061035 SIEBEL_TABLES
74 130512 8.000061035 SIEBEL_TABLES
74 130520 8.000061035 SIEBEL_TABLES
74 130528 8.000061035 SIEBEL_TABLES
74 130488 8.000061035 SIEBEL_TABLES
74 130496 8.000061035 SIEBEL_TABLES
74 130504 8.000061035 SIEBEL_TABLES
74 130480 8.000061035 SIEBEL_TABLES
Hello
Thanks for posting the sample data.
In your first post, you said:
URS wrote:
...
SQL > select sum (FREEGB) free_gb from free_space_info where nom_tablespace = 'SIEBEL_TABLES ';
FREE_GB
----------
206.999329
...
When I run this query with your sample data, I get:
FREE_GB
----------
.69140625
If the largest number is really what you want, explain, step-by-step, how get you from the given sample data.
I got some wrong in response #2 identifiers. What I wanted to post was:
WITH file_summary AS
(
SELECT SUM (sizegb) AS TotlAllocatedGB
nom_tablespace
OF tbs_file_info
GROUP BY tablespace_name
)
SELECT fi.tablespace_name
, fi. TotlAllocatedGB
SUM (fr.freegb) AS FreeGB
File_summary FI
JOIN free_space_info en on fr.tablespace_name = fi.tablespace_name
WHERE fi.tablespace_name = 'SIEBEL_TABLES. '
GROUP BY fi.tablespace_name
, fi. TotlAllocatedGB
;
Output of your sample data:
NOM_TABLESPACE TOTLALLOCATEDGB FREEGB
------------------------------ --------------- ----------
SIEBEL_TABLES 450.69140625
-
Error: ORA-00933: SQL not correctly completed command
Hello
When I run the query of delimit (who used to write the result of refsursor) in sql * plus, it works well.
But inside a procedure, when compiling, throwing me the following error message. I'm not sure why it generates this error.OPEN result FOR SELECT site_direction_id direction_numbers, site_lane_id lane_numbers FROM site_lanes JOIN report_parameters ON site_lane_id = report_parameter_value WHERE site_lanes.site_id = my_site_id AND report_parameters.report_parameter_id = in_report_parameter_id AND report_parameters.report_parameter_group = 'LANE' AND report_parameters.report_parameter_name = 'LANE' ORDER BY site_direction_id ASC, site_lane_id ASC FROM SYS.DUAL;
Could someone help me?---------------------------------------------------- PL/SQL: SQL Statement ignored PL/SQL: ORA-00933: SQL command not properly ended
Thank you.
Published by: user10641405 on June 8, 2009 11:39Hello
It really works in SQL * more? He has two FROM clauses.
You probably want to remove 'OF SYS. DOUBLE"of the last line.
-
Hi all
I have a couple of (relatively simple) tables (see DDL and DML below and try to join them,)
but I get the error ORA-00933 - and I can't for the life of understand me why?
I also put this on SQLFiddle for those who do not have a very convenient server.
This is the SELECT query - internal works without problem, but I can't
all for work.
Any help appreciated - TIA and rgs,
Paul...
[code]
CREATE TABLE ticket
(
ticket_id INT PRIMARY KEY,
ticket_description VARCHAR (25)
);
INSERT INTO ticket VALUES (1, 'ticket 1');
INSERT INTO ticket VALUES (2, 'ticket 2');
INSERT INTO ticket VALUES (3, ' ticket 3 ");
INSERT INTO ticket VALUES (4, 'ticket 4');
INSERT INTO ticket VALUES (5, 'ticket 5');
CREATE TABLE my_comment
(
comment_id INT PRIMARY KEY,
ticket_id INT NOT NULL,
comments_comment VARCHAR (45) NOT NULL,
comments_timestamp INT NOT NULL
);
INSERT INTO my_comment VALUES (1, 1, 'comment 1 ticket to 1', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (2, 1, 'Comment 2 1 notes', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (3, 1, ' comment 3 tickets on 1', ((TO_DATE ('2014-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (4, 1, ' comment 4 tickets on 1', ((TO_DATE ('2014-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (5, 2, 'comment 1 ticket in 2', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (6, 2, 'Comment 2 on 2 ticket', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (7, 2, 'comment on ticket 2 3', ((TO_DATE ('2014-07-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (8, 2, 'comment on ticket 2 4', ((TO_DATE ('2014-08-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (9, 3, 'comment 1 ticket of 3', ((TO_DATE ('2001-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (10, 3, 'Comment 2 tickets in 3', ((TO_DATE ('2002-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (11, 3, 'comment on ticket 3 3', ((TO_DATE ('2004-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (12, 3, ' comment 4 tickets in 3', ((TO_DATE ('2004-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (13, 4, 'comment 1 ticket on 4', ((TO_DATE ('2003-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (14, 4, 'Comment 2 tickets in 4', ((TO_DATE ('2004-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (15, 4, 'comment on ticket 4 3', ((TO_DATE ('2004-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (16, 4, ' comment 4 tickets 4', ((TO_DATE ('2006-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (17, 5, 'comment 1 ticket to 1', ((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (18, 5, 'Comment 2 on 2 ticket', ((TO_DATE ('2014-02-13 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (19, 5, 'comment on ticket 3 3', ((TO_DATE ('2014-06-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
INSERT INTO my_comment VALUES (20, 5, ' comment 4 tickets 4', ((TO_DATE ('2014-07-09 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400));))
[\code]
do not use 'UNDER' keyword in alias for the table
SELECT t.ticket_id,
t.ticket_description,
x.c_max_date,
z.comments_comment
FROM (SELECT ticket_id, MAX (c.comments_timestamp) AS c_max_date
OF my_comment c
WHERE (c.comments_timestamp
((TO_DATE ('2013-11-30 15:15:30 ', ' yyyy-mm-jj HH24:mi:ss)-TO_DATE ('1970-01-01 00:00:00 ',' yyyy-mm-dd HH24:mi:ss)) * 86400-60000000)))
)
GROUP BY ticket_id) x
INNER JOIN t ticket
ON t.ticket_id = x.ticket_id
INNER JOIN my_comment z
WE z.comments_timestamp = x.c_max_date;
----
Ramin Hashimzade
-
Can someone help me - error:-not correctly completed SQL command
Hello
This code has an error, I tried to find this error but I don't find it so please help me: -.
error report:
ORA-06550: line 1, column 149:
PL/SQL: ORA-00933: SQL not correctly completed command
ORA-06550: line 1, column 7:
PL/SQL: SQL statement ignored
Code
Select HTMLDB_ITEM. HIDDEN(1,SEQ_ID),
HTMLDB_ITEM. C001 Text(2,a.C001).
HTMLDB_ITEM. C002 Text(3,a.C002).
HTMLDB_ITEM. C003 Text(4,a.C003).
APEX_ITEM. SELECT_LIST_FROM_QUERY (5, a.c004, 'SELECT D P_ID, P_ID R OF PARTY_DETAIL') c004.
APEX_ITEM. SELECT_LIST_FROM_QUERY
(6, a.c005,)
' SELECT CATEGARY_NAME D, ' |' CATEGARY_NAME ITEM_CATEGARY R'.
"style =" width: 220px "'"
||' OnChange = "get_select_list_xml1 (this, e
|| 'f7_ '.
|| LPAD (seq_id, 4, '0')
|| ')"',
'' YES. ''
'0',
"- Select -",
« f6_ » || LPAD (seq_id, 4, '0'),
NULL,
'NO') c005
APEX_ITEM. SELECT_LIST_FROM_QUERY
(7, a.c006,)
"SELECT ITEM_CODE D.
||' ITEM_CODE ITEM_MASTER R'
||' WHERE CATEGARY_NAME ='
|| C005,
"style =" width: 220px "',"
'' YES. ''
'0',
"- Select Code (')"
|| (Select Count (*)
of ITEM_MASTER
where CATEGARY_NAME = c005)
|| ')-',
« f7_ » || LPAD (seq_id, 4, '0'),
NULL,
'NO') c006
APEX_ITEM. SELECT_LIST_FROM_QUERY (8, a.c007, 'SELECT nom_element, nom_element R OF ITEM_MASTER D') c007,.
HTMLDB_ITEM. C008 Text(9,a.C008).
APEX_ITEM. SELECT_LIST_FROM_QUERY (10, a.c009, 'SELECT PACK_TYPE D, PACK_TYPE R OF ITEM_PACKING') c009,.
HTMLDB_ITEM. Text(11,a.C010) c010.
HTMLDB_ITEM. Text(12,a.C011) c011.
HTMLDB_ITEM. C012 Text(13,a.C012).
HTMLDB_ITEM. C013 Text(14,a.C013)
OF wwv_flow_collections one
where a.collection_name = 'REC_ITEM. '
Thank you
Maury
Published by: Ed on September 10, 2009 03:36Can you copy and paste this code into SQL * more and see if it runs properly? You can check your single quote (') and double quote characters ("") to make sure that those who at the height correctly because it is difficult to say when copied on the web.
-
Not correctly completed SQL command
can not find why this error occurs: not correctly completed SQL command
PROCEDURE FORMA4_25_11)
P_GO IN VARCHAR2,
P_DATE_1 IN VARCHAR2,
P_DATE_2 IN VARCHAR2,
P_DAY_COUNT NUMBER,
DATA_SET ON SYS_REFCURSOR)
AS
DB_QUERY VARCHAR (32767).
BEGIN
DB_QUERY: = ' SELECT T1.ad, T1.admin_count, T1.cnt)
SELECT dc.NAME ad,
Count (am. IDN) admin_count,.
Admn.Say NTC
SINCE DC dictionaries.customs
INNER JOIN kadr.tper_master mf
ON mf.branch_code = dc.code_int AND mf.status = 0
INNER JOIN vpdgk.vp_admin am
ON am.mufet_id = mf.idn
LEFT JOIN (SELECT branch_code,
Say Count (branch_code) AS
OF (m_id SELECT c.mufet_id,
b.branch_code,
Count (c.mufet_id) mufet_count
OF vpdgk.vp_qeydiyyat A
INNER JOIN kadr.tper_master b
ON b.idn = a.mufet_id
INNER JOIN vpdgk.vp_admin c
ON c.mufet_id = A.mufet_id
AND (c.uid_ IS NOT NULL
GOLD c.uid_reserv IS NOT NULL)
INNER JOIN dictionaries.customs d
ON d.code_int = b.branch_code
WHEN Trunc (A.insert_date) BETWEEN
TO_DATE('''||) P_DATE_1 | " ', "DD. MM YYYY ")
AND
TO_DATE('''||) P_DATE_2 | " ', "DD. MM YYYY ")
C.mufet_id GROUP, b.branch_code
HAVING COUNT (c.mufet_id) < ' | P_DAY_COUNT |')
GROUP BY branch_code Admn)
ON admn.branch_code = dc.code_int
Dc.NAME, admn.say) AS T1 WHERE T1.ad = ' | P_GO | ";
DATA_SET OPEN FOR DB_QUERY;
END;
Hi Afa
At the end of SQL you write 'AS '. Remove it
Excample:
-
trial of Photoshop does not download, I did something wrong
trial of Photoshop does not download, I did something wrong
Depends on what you were doing, who you know at the moment. Make sure that you have enabled cookies and clear your cache. If he continues to not try to use a different browser.
-
Is there something 'wrong' with a folio vs the correct distribution of sharing?
Hi there, I was looking at the forum when I saw an old comment indicating that sharing is designed more for the test rather than the distribution; I did not know that. I share a presentation of sales corporate with 10 iPad users all over the world (most are in society, some are not), it may possibly reach 20 users in one year. Changes occur once every few weeks, but when they do, they need to get just this moment, so 'sharing' has worked well for me so far. Is there something wrong with work this way? I just read on limited and the company's distribution, but it confuses me a little, and if this car is not broken, do not fix.
Thank you!
No, there is nothing wrong with sharing to a limited audience. Expect some restrictions in the future in the scenario where users create the content, then share the credentials for this account largely as a means of dissemination of content outside the system.
-
Network is there something wrong with spades to msn I can't enter the game
y at - it something wrong with the games of msn (Spades) that I can't get on line with.i can play other games like billiards but usually allow connect to Spades, why why why?
Hello keithshipley,
This is not the right forum to ask questions about the MSN PIC.
Please follow the instructions on the following site.
http://zone.MSN.com/en/support/article/supporthubmultiplayer.htmThank you
Marilyn
-
Cannot, sign, only get a white screen, is there something wrong with the application?
[Duplicate message deleted... post the same question more than once is confusing... MOD]
[This is an open forum, not a direct line to Adobe support... you have to wait a response]
WHITE cloud screen http://forums.adobe.com/message/5484303 can help
- and step by step http://forums.adobe.com/thread/1440508?tstart=0
- and http://helpx.adobe.com/creative-cloud/kb/blank-white-screen-ccp.html
-
is there something wrong with having a HREF inside a <; div >; tag?
I just realized that my href does not work (see below). Is there something wrong with having in a < div > tag:
< div id = "logo" >
< a href = "index.html" > < img src = "images/OWN - logo.gif" alt = "Logo of Nutrition optimum Wellness" width = "276" height = "170" border = "0" / > < /a >
< / div >THE CSS is in another file and looks like this:
{div #logo
position: absolute;
left: 34px;
top: 44px;
z-index:-1;
Width: 276px;
height: 170px;
-moz-background-clip:-1;
}For example... If you go to the next page is not WHY NUTRITION WELL-BEING OPTIMAL logo (top left corner) a link to index.html?
http://www.Human-landscaping.com/staging/own/about.html
Thank you, - bill
Nothing wrong with having a href in a div; It is the usual way to do it.
But give your div #logo a z-index of the least throws a it back behind the plane of the photo and inaccessible to your cursor hovering.
Lose the z-index:-1; and you'll be fine.
Beth
-
I El capitan, but stopped opening safari says impossible to find something wrong with the application extension
You can open it by accessing it in the Applications folder? If so, you may have a corrupt Dock alias. Click and hold the alias and make it about 1 inch away from the docking station, then release. Then drag the application in the Applications folder in the Dock to create a new alias. When you have a new alias, control - click/Options/keep in Dock.
Maybe you are looking for
-
Please help this driving me MadSince the installation of Firefox 20.0.1. on my MS Windows 7 Toshiba Laptop there was a box in the center of my screen titled "progress install < with a bar running below green growth."Firefox 20.0.1 (FF) works very wel
-
Do darker colors... Gray and light blue screen hard to see
I enjoy features on Firefox and Mobile Me, however, your color scheme is hard for me to see. the gray and blue clear do not enough for me to easily view. Is there a way to change this?
-
Satellite U400 need hard disk driver
Hello Where can I find the driver (Setup information .inf file) to the hard drive of my computer Satellite U400 PSU40 - 01 M 001 hard drive is MK3252GSX.I need this file to make a recovery of the computer system. Windows Vista 32 bit. Thank you b
-
I see that the G7-2323DX has no drivers for the operating systems Windows 7 family. Made the downgrade to Windows 7, however, I now need a list of the material (e.g., motherboard, chipset, PCI, USB, etc.) and/or list of required drivers to complete
-
How to recover programs lost a virous?
I picked up a virous which forced me to buy a program. I contacted my Service Provider (BT). One of the advisors there remotly has distance comand my computer and removed the virous manually. When I started there is no icons on my desktop. Whidh have