Hi I have the following:
I am trying to say give me accounts that are in A and not Exist in M
...
For some reason I am getting accounts that exist in both files...
Can someone please tell me where I went wrong...
Thanks
Code:
SELECT account, name, paidAmount,Id,lob,creditStatus FROM adsBostonGlobeAdvert a WHERE NOT EXISTS (SELECT * FROM Master m WHERE a.account = m.account AND desk NOT IN ('PUR', 'WJMPURGE') AND current0 <> 0)
I am trying to say give me accounts that are in A and not Exist in M
...
For some reason I am getting accounts that exist in both files...
Can someone please tell me where I went wrong...
Thanks