Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last record in each group
Message
De
29/11/2007 19:06:54
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Titre:
Last record in each group
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01272276
Message ID:
01272276
Vues:
62
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform