Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last record in each group
Message
 
 
À
30/11/2007 08:52:25
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01272276
Message ID:
01272394
Vues:
20
>Ok, if you send me the code I will appreciate so much.
>
>thanks in andanvace
>
>CB


Here is VFP idea, needs to be adjusted for SQL Server:
select my.* from myTable my ;
inner join ;
(select ctobin(right(max(dtos(date)+bintoc(ID)),4) as ID, MyGroupField ;
from myTable group by myGroupField) MaxInfo on my.ID = MaxInfo.ID
From http://forum.foxclub.ru/read.php?32,177183,177232#msg-177232 (in Russian)
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform