Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax for the following
Message
 
 
To
31/07/2007 02:12:51
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01244721
Message ID:
01244806
Views:
14
Too bad. It works fine in SQL Server.

>I tried your solution, but get "Queries of this sort are not supported" error.
>
>Regards
>Doug Johnston
>
>
>
>>Hi Doug,
>>
>>Assuming that idnum is PK for mytable
>>
>>SELECT * FROM mytable t1
>>  WHERE idnum IN (SELECT TOP 20 PERCENT idnum FROM mytable WHERE cgroup = t1.cgroup ORDER BY iscore)
>>ORDER BY cgroup, iscore
>>
>>>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform