I have two TABLES [A] and with these attributes.
A
-ssn
-id1
B
-ssn
id2
I want to find all SSN from A whose id1 does not exist in id2. I can find all ssn in A not in SSN B.
Select * from A where ssn not in(select ssn from A, B where a.ssn=b.ssn)
but how do I get all the SSN and the ID1 from A not in B?
Thanks.
A
-ssn
-id1
B
-ssn
id2
I want to find all SSN from A whose id1 does not exist in id2. I can find all ssn in A not in SSN B.
Select * from A where ssn not in(select ssn from A, B where a.ssn=b.ssn)
but how do I get all the SSN and the ID1 from A not in B?
Thanks.