maybe my description is bit misty:)
i want to do outer join on two tables, and select records where one field has some value or is null
my original concept was
select A.x,B.y
from A
left outer join B
on A.id= B.a_id
where b.y ='abc'
or b.y is null
but then i realized it’s taking B.y from B table not from joined
is it any easy fix how i can do it?
what i need is selecting rows, where B.y is ‘abc’ or null, ie :
(1,’abc’)
(2,null)
while my query gives me functionality of inner join with result
(1,’abc’)
ignoring other entry
Is it
After reading comments just remove left outer