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

Filter Query

Status
Not open for further replies.

richo

Technical User
May 16, 2001
14
AU
I have a list of companies with contacts which l have contact date and notes for. I need to filter the query so only the last contact date and note appears for each company.]

Thanks
 
What about the below example...

SELECT Test.ID, Test.FirstName, Test.ContactDate
FROM Test WHERE Test.ContactDate IN (SELECT Max(ContactDate) FROM TEST;)

This query will pull the contact record with the most recent contact date.

Does this help?

Gary
gwinn7
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top