Hi,
I think not exits same as left join, but why the results are different? -thanks
Query1- 1 record returned
select*
frommyorders a
whereNOT EXISTS
(select *
from mysal b
where a.ordercd b.ordercd
)
and a.company =456
query 2: 500 records returned
select*
frommyorders a
left join mysal b
on a.ordercd b.ordercd
and a.company =456