im has a little syntax problem in my request (simplified):
select * from table1 t1 inner join table2 t2 using (pk1) inner join table3 t3 using (pk2) where not exists (select1 from table4 t4 where t4.pk1 = t1.pk1)
Using the "using" keyword, oracle does not allow the table identifier before the column name (for example: t1.pk1, only pk1 can be used)
If I write:
select * from table1 t1 inner join table2 t2 using (pk1) inner join table3 t3 using (pk2) where not exists (select1 from table4 t4 where t4.pk1 = pk1)
This query will not return the expected results.
But since I use the "exist" subquery, how can I join this subquery?
Of course, I believe that I could write this query in a different way and avoid existence, or I could NOT use "use".
But is it possible to "combine / use" in conjunction with a subquery in the where clause?
Edit: using Oracle 10gR2
source share