Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning an Incremental Field Value in SQL
Message
From
30/04/2004 09:37:11
 
 
To
30/04/2004 09:07:17
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00899694
Message ID:
00899730
Views:
18
You can found a solution with GROUP BY ,
but it can return good results only with a not fragmented datasession.
CLOSE TABLES
clear
CREATE CURSOR aa (f1 i, f2 i)
FOR k=1 TO 100
INSERT INTO aa VALUES ( RECCOUNT()%5,RECCOUNT())
next
SELECT f1,MAX(f2),RECNO('D') from aa GROUP BY 1
Previous
Reply
Map
View

Click here to load this message in the networking platform