Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL command: syntax needed
Message
De
22/03/2004 19:34:33
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00888526
Message ID:
00888711
Vues:
19
Sergey,

>Try
SELECT id_product, year, price ;
>	FROM mytable mt1 ;
>	WHERE year IN ( SELECT MAX(year) FROM mytable mt2
>			 WHERE mt2.id_product = mt1.id_product )
>
Bingo! That's the correlated subquery I was trying to remember.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform