Re: Problem with LEF OUTER JOIN
Did you actually try this statement with the data you provided?
select * from tblCat C LEFT OUTER JOIN tblCatDet D ON C.ID=D.CatID WHERE D.color='2'
If I am not wrong, this will return emtpy set in the result, since there is no rows satisfy the condition D.color='2'
Maybe you want to try
select * from tblCat C LEFT OUTER JOIN tblCatDet D ON C.ID=D.CatID WHERE D.color='clr'
and compare it with
select * from tblCat C LEFT OUTER JOIN tblCatDet D ON C.ID=D.CatID WHERE D.color='clr' OR D.color IS NULL
Subject
Views
Written By
Posted
3451
March 19, 2006 04:01PM
1950
March 19, 2006 05:48PM
2570
March 20, 2006 04:04AM
2340
March 20, 2006 10:31AM
2114
March 20, 2006 03:02PM
1952
March 20, 2006 03:34PM
2041
March 21, 2006 06:35PM
2035
March 22, 2006 05:10PM
2058
March 23, 2006 08:06AM
2087
March 22, 2006 07:06PM
2195
March 24, 2006 02:01PM
Re: Problem with LEF OUTER JOIN
2276
March 26, 2006 08:05PM
2246
March 26, 2006 11:40PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.