Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group by clause in vfp8
Message
 
À
20/04/2003 12:38:10
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00774269
Message ID:
00779644
Vues:
45
>Hi George
>
>I may be wrong, but Max() doesn't guarantee you get the last row, merely the highest value in that column in that group. Isn't this like comparing apples to oranges ;) ?

Mike,

You're not wrong. MAX() should return the largest value. If there's a group by including the field, then it'll be the largest value for that group. If not, then it'll be the largest field value regardless. AFAIK, there's no SQL statement that, under these circumstances, is guaranteed to return the value of the last physical record.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform