Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL filter question
Message
 
 
À
07/07/2003 14:17:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00807559
Message ID:
00807588
Vues:
34
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform