Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

not equal query... 1

Status
Not open for further replies.

mjonson

Technical User
Mar 9, 2004
128
GB
Hi,

have query-
SELECT cuskerr.postc AS kerr, cuskerr.first, cuskerr.last, cusvaux.postc AS vaux, cusvaux.first, cusvaux.last, cuskerr.ID, cusvaux.ID
FROM cuskerr, cusvaux
WHERE (((cuskerr.postc)=[cusvaux].[postc]) AND ((cuskerr.last)=[cusvaux].[last]));

This displays results that are equal to each other
but cannot create query where the output displays
all records in table cusvaux that are not in table cuskerr

ne ideas welcome




 
select * from tbl where value NOT IN (select * from tbl)

Procrastinate Now!
 
all records in table cusvaux that are not in table cuskerr
SELECT cusvaux.*
FROM cusvaux LEFT JOIN cuskerr
ON (cusvaux.postc=cuskerr.postc) AND (cusvaux.last=cuskerr.last)
WHERE cuskerr.last Is Null
;

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top