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!

Null value or Certain Codes

Status
Not open for further replies.

jdgreen

Technical User
Mar 21, 2001
144
US
I have a query that searches two tables. I want results if there is no value for a persons last name in the second table of if the attendance code is either a FWP or PA in the second table. The key value is the Clock Number, which I have the two tables joined by.

John Green
 
Will there always be a linked record in the second table? i.e. There is a record, but it has no value in the [lastname] field.

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
No, that's the problem. I worked it out using an IsNull function to get the names that don't show in the date range for the second table, but can't figure out how to get it with the two codes that should also be included.

John Green
 
What is your actual SQL code ?

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

Part and Inventory Search

Sponsor

Back
Top