Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Problem
Message
 
À
14/06/1999 13:30:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00229451
Message ID:
00229569
Vues:
18
>Thanks for reply. but your trick won't work.
>
>When you issue
>
>select cparentid,max(ddate) from table1 group by cparentid
>
>This will not give me the details of the record which has highest date.
>This will give group's last records information .
>
>Mark

Use 2 selects
select cparentid,max(ddate) from table1 group by cparentid into cursor max1

select t.* from table1 t, max1 x ;
where t.cparentid = x.cparentid
and t.ddate = x.ddate
-TomC
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform