Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sub query in left join

755914Sep 6 2010 — edited Sep 6 2010
hi,

I wanted 2 do some thing like this..
Select A.C1, A.C2
From A 
LEFT JOIN B 
ON A.C1 = B.C1 AND B.C2 = (SELECT T.C1 FROM T WHERE B.C2 = T.C1);
How can i do dis?
It is giving me exception :: ORA-01799: a column may not be outer-joined to a subquery

but
Select A.C1, A.C2
From A 
LEFT JOIN B 
ON A.C1 = B.C1 AND B.C2 = 5;
is working fine
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 4 2010
Added on Sep 6 2010
4 comments
1,506 views