Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL filter question
Message
 
 
To
07/07/2003 14:00:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00807559
Message ID:
00807567
Views:
16
It's a bug in VFP which doesn't allow to use subquery with GROUP BY clause. As a workaround you can split your query into two steps.

>Hello,
>
>The following sql command generates a "command is missing required clause" error. Can anyone help me??? Thanks!!!
>
>SELECT * from tempAgg INTO CURSOR cuAgg WHERE date in (select DISTINCT TOP 2 date FROM tempAgg WHERE quarter = cPquart ORDER BY date)
>
>
>- tb
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform