Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need another VFP ->SQL translation, please
Message
 
To
28/11/2012 15:05:36
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01558276
Message ID:
01558280
Views:
83
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform