I have query like:
SELECT *
FROM table1 LEFT OUTER JOIN table2
ON table1.id=table2.c_id
It gives me an error
ORA-00904 "table2.c_id" invalid identifier
The thing is that query works with FULL OUTER JOIN and with INNER JOIN - no error. Even this one works:
SELECT *
FROM table1, table2
WHERE table1.id=table2.c_id(+)
Error only occurs with right or left outer join and only on test db.
Both tables are partitioning.
Production db, where query runs perfect - Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
Test db, where query fails - Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
Configuration of tables on both db are the same.
Any suggestions what could it be?
select * from table1 t1 left outer join table2 t2 on t1.id = t2.c_id
? Is there a database link involved? (Oracle has a long history of broken ANSI Joins when DB links are involved) – Frank Schmitt