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:
00807573
Views:
15
I am afraid it is a limitation of SQL IN clause. I believe you could do it separately:

select DISTINCT TOP 2 date FROM tempAgg WHERE quarter = cPquart ORDER BY date into curs temp nofilt

SELECT * from tempAgg INTO CURSOR cuAgg WHERE date in (select date from temp)

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform