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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need a query to display all records in one table except items in a second table 1

Status
Not open for further replies.

irethedo

Technical User
Feb 8, 2005
429
US
I have two tables and I want to display all the records that are in Ord_tbl who's System field does not
match the PartsDesc field in my IOM_tbl but am not able to get the query set up correctly.

Here is what my query looks like but it is displaying all records in the Ord_tbl:

Code:
SELECT Ord_tbl.Date, Ord_tbl.Cust_Name, Ord_tbl.System
FROM Ord_tbl LEFT JOIN IOM_tbl ON Ord_tbl.[System] = IOM_tbl.[PartDesc];

What am I missing?

Thanks
 
SELECT Ord_tbl.Date, Ord_tbl.Cust_Name, Ord_tbl.System
FROM Ord_tbl LEFT JOIN IOM_tbl ON Ord_tbl.[System] = IOM_tbl.[PartDesc]
WHERE IOM_tbl.[PartDesc] is null
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top