| Article: |
More on JOINS | |
| Subject: | Relationship: one to one | |
| Date: | 2001-06-04 16:22:32 | |
| From: | edith30 | |
|
I'm new on sql, please explain more about how can I make the selects statement in order to output the fields from diferents tables at the same time in this kind of relationship (one to one).
|
||
Showing messages 1 through 1 of 1.




SELECT * FROM Customer INNER JOIN Address ON
Customer.CustKey = Address.CustKey
This statement would return the fields: Customer.Custkey, Customer.CustFirstName, Customer.CustLastName, Address.AddrKey, Address.CustKey, Address.AddrLine1, Address.AddrLine2.