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!

How to Return Lowest Date Value?

Status
Not open for further replies.

lrdave36

Technical User
Jan 6, 2010
77
US
Hey guys,

A bit stuck on this one. I have a history table that contains records for each SSN. Each individual record contains a payment amount and date of payment.

I need to write a query that will return the first payment date in their history record.

Ex.


SSN Payment Date Payment Amount


11122 06/22/1957 234.44
11122 07/21/1966 123.33
11122 08/11/1980 23.33



I want my query to return the top record with the date 06/22/1957 since this is their first record. Can't figure out how to do this. Any ideas?
 
Nevermind, I totally forgot about the min function!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top