Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Top
Message
From
13/01/2000 14:02:29
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00317437
Message ID:
00317808
Views:
32
>The query designer generates a SQL command. The TOP clause is part of the SQL Select command syntax.
>
>The following is a simple example of its use:
>
>select * TOP 10 ;
> from MyTable ;
> into cursor MyCursor
>
>OR
>
>select * TOP 10 PERCENT;
> from MyTable ;
> into cursor MyCursor
>
>If you select Query->View SQL from the FoxPro menu when the query designer is running then you can see exactly the effect the interface objects/selections have on the code.

You need a GROUP BY in order to use the TOP on a SQL SELECT.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform