Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select, which returns exact number of records
Message
From
13/04/2000 10:42:28
 
 
To
13/04/2000 09:11:33
Jan Korecko
Coopex Soft S.R.O.
Presov, Slovakia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00359207
Message ID:
00359272
Views:
9
Jan,

>I have command "SELECT * FROM table WHERE ORDER BY ", which returns e.g. 100 records, but I want use first or last 10 records only. How to correct this command for this purpose?
>I donn't want to use "TOP 10" clause, because it can return more than 10 records. I want exactly 10 records (if exist, of course).

Just use a little xbase then.
SELECT * FROM table INTO CURSOR temp WHERE conditions ORDER BY column
COPY NEXT 10 TO filename
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform