Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting from multiple tables...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00226145
Message ID:
00226154
Vues:
26
Hi Jason, (I hit SEND too fast!!)
>
>>How would I go about selecting multiple fields from different tables where the conditional expression tests fields from different tables?
>
SELECT TableA.Field1, TableA.Field2, TableB.Field1, TableB.Field2 ;
FROM TableA INNER JOIN TableB ;
ON TableA.KeyField = TableB.ForeignKeyField ;
WHERE TableA.Field3 = "TEST" ;
AND TableB.Field4 > 40

HTH,
Bill Armbrecht
VFP MCP
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform