Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need another VFP ->SQL translation, please
Message
 
À
28/11/2012 15:05:36
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01558276
Message ID:
01558280
Vues:
81
>Hi all
>
>Quite often, I use indirect referencing of tables in SQL statements,
>
>Select a.fld1, a.fld2, c.fld1, c.fld2, c.fld3 ;
>  from MasterTable a, ChildTable c;
>where a.KeyField = c.KeyField
>
>
>I need the 'translation' of "MasterTable a, ChildTable c" in T-SQL
>
>Thanks
>
>Dorris

INNER JOIN?
Select a.fld1, a.fld2, c.fld1, c.fld2, c.fld3 ;
  from MasterTable a
INNER JOIN ChildTable c ON a.KeyField = c.KeyField
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform