Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select from select
Message
De
13/03/2006 23:32:55
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01104014
Message ID:
01104030
Vues:
12
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>in version 9 I can code
SELECT mytable.* ;
>	FROM (SELECT linkfield FROM othertable WHERE test = testvalue GROUP BY linkfield) as tLink ;
>		INNER JOIN mytable ON tLink.linkfield = mytable.linkfield
>which is really fine. Is it possible to achieve the same result in version 6 (odbc)?
>
>regards
>Geoff Scott

Does
SELECT * FROM mytable
  WHERE mytable.linkfield IN (SELECT linkfield FROM othertable WHERE test = testvalue)
do the trick?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform