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!

Using LAST in Grouped Queries

Status
Not open for further replies.

LeanneGodney

Technical User
Mar 7, 2002
175
GB
Hi there,

In my table I have lots of trade documents stored per trade. Each document has a set of properties, including a comments field. I would like to see the most recent comment field, be it the most recently added or the most recently edited.

In Access you could group the data and specify LAST for the comments field, and GROUP BY for the Trade's Ref.

Is there something like this in SQL Server queries? Or should I start using a time stamp for the comments field?

Thanks,
Leanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top