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

Need help with SQL statement

Status
Not open for further replies.

EKC

Technical User
Jan 13, 2001
43
CA
Hi,
I have table transaction with Parts and transaction dates.Each part has more then one transaction date of different type and source.My problem is that I need to get latest date for each part,so I'm trying with SQL statement(If It's possible?).If it's not possible how should I make small program to extract those latest dates.I know that it should be loop but how you do it?
Thanks for any help,
Cheers,
Lyn
 
SELECT PartNo, Max(TransDate) AS TransDate
FROM Transaction
GROUP BY PartNo Jon Hawkins

The World Is Headed For Mutiny,
When All We Want Is Unity. - Creed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top