Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT and grouping
Message
From
03/03/1999 10:54:38
 
 
To
03/03/1999 09:22:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193535
Message ID:
00193600
Views:
12
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform