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

I need to find maximum date

Status
Not open for further replies.

tjisaacs

Technical User
Jan 17, 2002
13
US
I have a table that has multiple records with same patient id but different collection dates. I want to query for the latest collection date?

Pt ID Accn # Coll Date

1001 112 6/5/02
1001 113 7/1//02
 
Hi tjisaacs,

In your query you could specify patient ID must equal ie. 1001 (I assume you know how to do this), then sort the query by the date field (descending). The first record in the query will be the desired record.

Let me know if this helps.

Regards,
gkprogrammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top