Select * from T1 where x in ( select y from T2 )
It is typically processed as:
select * from t1, ( select distinct y from t2 ) t2 where t1.x = t2.y;
But I have select * from T1 where x NOT IN (select y from T2)
How can I convert this SQL to an inline view sentence?
select * from t1, (select x,y from t1, t2 where t1.x = t2.y(+)) t3 where t1.x = t3.x and t3.y is null
Dig Deeper on Using Oracle PL-SQL
Related Q&A from Azim Fahmi
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.