Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last record in each group
Message
From
29/11/2007 19:06:54
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Last record in each group
Environment versions
SQL Server:
SQL Server 2000
Miscellaneous
Thread ID:
01272276
Message ID:
01272276
Views:
60
Hi, I need a help about how to get the last record (of each group) in a query , something like this:

Select field1,
field2,
max(mydatefield3)
group by
field1 ,
field2

I´m obtaining some records of each group, but I need just ONE record (determined by : max(mydatefield3)).

How can I do that?

Thanks in advance
Carlos Burgos
Next
Reply
Map
View

Click here to load this message in the networking platform