Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
First 500 records that match (in sql)
Message
 
 
To
03/08/2008 21:51:35
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01336184
Message ID:
01336185
Views:
17
>Hi. How would I say 'the first 500 records that match (my other criteria in the sql).
>

You would use the TOP clause. It does require the ORDER BY clause
SELECT TOP 500 * FROM ...
  ...
  ORDER BY ...
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform