DiscoStuart
Programmer
I executed the following three SQL statements. The first two produced identical results, but the last one returned no results, can somebody please tell me why?
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
where not exists (select z.plslid from dba.tblImpPrimusTemp z where b.plslid=z.plslid);
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
left outer join dba.tblImpPrimusTemp c
on b.plslid=c.plslid
where c.plslid is null;
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
where b.plslid not in (select z.plslid from dba.tblImpPrimusTemp z);
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
where not exists (select z.plslid from dba.tblImpPrimusTemp z where b.plslid=z.plslid);
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
left outer join dba.tblImpPrimusTemp c
on b.plslid=c.plslid
where c.plslid is null;
select b.plslid
from dbz.tblMyrAllCompleted a inner join dbz.tblallprimusplac b
on a.jobid=b.jobid
where b.plslid not in (select z.plslid from dba.tblImpPrimusTemp z);