Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL filter question
Message
 
 
To
07/07/2003 14:17:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00807559
Message ID:
00807588
Views:
33
Hi Tony,

You make subquery a separte query and use it's result in the main query.
select DISTINCT TOP 2 date ;
	FROM tempAgg ;
	WHERE quarter = cPquart ;
	ORDER BY date ;
	INTO CURSOR crsTemp
	
SELECT * ;
 FROM tempAgg ;
 WHERE date in (select date FROM crsTemp) ;
 INTO CURSOR cuAgg 

USE IN crsTemp
>Hi Sergey,
>
>thanks for the response, although I'm a bit confused. How would you suggest I split my query?
>
>Thanks again,
>
>Tony
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform