Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Take last entry in group-by SQL?
Message
De
06/12/2000 02:57:49
 
 
À
05/12/2000 20:42:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00449211
Message ID:
00449827
Vues:
9
>>Justok,
>>There is something wrong here. Group by takes the last entry.
>>Cetin
>
>

>
>Oh.. Then it is finished.. :))
>
>Well, In case to take the first occur value from natural order, would you tell me how to code?
>(This learn is for interest only, not my boss request.)
>
>Thankyou.

I had to do this once. What I did was:

select * from originaltable into cursor othercursor order by MyDesiredOrder


and then I can do the «group by select» from the OtherCursor because it is already naturally ordered the way it needs to be.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform