Join o Where?

Nosequehacer
22 de Mayo del 2008
Hola! quien podría ayudarme con esto?

SELECT q2.order_no
FROM QUERY2 q2 JOIN QUERY1 q1 ON q2.product_id = q1.product_id;

Aparece el error ORA-00933: SQL command not properly ended. Entonces estoy usando mal el JOIN

Y si lo paso a where

SELECT q2.order_no
FROM QUERY2 q2, QUERY1 q1 Where q2.product_id = q1.product_id;

Aparece el error ORA-01652: Unable to extend temp segment by 8 in table space TEMP

No se que más hacer, me ayudan con el JOIN?

andrewsreid
22 de Mayo del 2008
Necesitas más sitio en tu tablespace TEMP.
Puedes hacerlo de la manera siguiente:

1 select file_name, bytes
2 from dba_temp_files
3* where tablespace_name = \'TEMP\'
SQL> /

FILE_NAME
--------------------------------------------------------------------------------
BYTES
----------
/cisoat/temp/nbaoat/temporary_data_nbaprod01.dbf
1048576000


SQL> alter database tempfile
2 \'/cisoat/temp/nbaoat/temporary_data_nbaprod01.dbf\'
3 resize 1200m;

Database altered.

SQL>