SQL Server 2008 Finding Most Recent Record Only

20 pts.
Tags:
SQL Record
SQL Server 2008
SQL Server Query
Hi there I have a databse that logs letter print activity The fields being
Letter_Ref

Print_date
Any time someone prints a particular letter it leaves a date in print ref What i want to do is find the most recent print date for each letter_ref is this possible and if so how

Software/Hardware used:
SQL Server 2008
ASKED: July 12, 2010  9:26 AM
UPDATED: October 23, 2013  3:31 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.
SELECT Letter_Ref, MAX(Print_date)
FROM YourTable
GROUP BY Letter_Ref

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following