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

Query that finds displays records items with missing data

Status
Not open for further replies.

Harr777

Programmer
Sep 25, 2003
71
US
I'm trying to produce a query the will display a list of records of items that do not have a certain value in a connected table. The SQL Code should be something like:

SELECT tblAssets.SerialNum, tblMeterReads.ReadPeriod
FROM tblMeterReads INNER JOIN tblAssets ON tblMeterReads.SerialNumber = tblAssets.SerialNum
WHERE ((???????????????????????));

The WHERE part, I supose, should specify that the it IS NOT found in the tbleMeterReads. For expample, a item from the tblAssets that does not a have a record in the tbleMeterReads under the corresponding SerialNumber and the ReadPeriod "200404".

This is a bit of a challenge, because usually queries select data that exists in tables. This is trying to find records that do not exist.

Any help would be greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top