Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question
Message
 
To
24/12/1998 10:17:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00170260
Message ID:
00170268
Views:
15
>Hello everybody!
>
>Is there any way using one select statement get as result a top, let's say 10 MAX() values from field ?
>Thank's.

If I understand you right,
SELECT TOP 10 * FROM myTable ORDER BY myField DESC
should do it.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform