Hi,
Why not use the UNION clause to split your query into two or more select statements.
e.g.
select record_id from editorial_sub8 where a1 like'%|He%' or a1 like'%|Ent B%' or a1 like'%|Fin B%' or a1 like'%|Music B%' or a1 like'%|News B%'
union all
select record_id from editorial_sub8...
I think I have figured out the cause of this problem. It's because there was a NULL value for the 'PlslID' in table dba.tblImpPrimusTemp. Once I removed this record the third query gave me the same results as the first two queries.
It must have something to do with the way NULLs are treated...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.