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!

How code this query?

Status
Not open for further replies.

ZABADAK

Programmer
Feb 24, 2005
39
US
I posted this before buy never got a suitable answer and am still struggling with the problem....

I have a table of service request (SR) data extracts. There is no unique key. The extract can be run for any time period and each extract may or may not contain the same SR number. Each extract record has a run date.

What I need to do is extract all of the columns for each unique SR number for the latest run date record in the table. How do I do this? I must somehow group by SR number and then take the SR record with the MAX run date. Any help much appreciated.
 
can you provide some sample records and what you want your results to look like?


Leslie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top