Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT and grouping
Message
 
 
À
03/03/1999 09:22:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00193535
Message ID:
00193600
Vues:
13
>In SELECT with GROUP BY anybody knows how to generate a group number?
>Something like this:
>1 Ford
>2 Nissan
>3 BMW
>Thanks Mark

Here's another way. (More work, but more flexible)

LOCAL liKeynum
liKeynum = 0

SELECT GetKey(liKeynum) AS thekey, *


*******************

FUNCTION GetKey
LPARAMETER tikeynum

RETURN tiKeynum + 1



-Michelle
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform