General information
Category:
Database DAO/RDO/ODBC/ADO
>>I need to list all fields in DayTrans and link to Customer only to get
>>the Address. Am I right to code as:
>>
>>SELECT DayTrans.CustCode, DayTrans.CustName, Customer.Address
>>FROM DayTrans INNER JOIN Customer
>>ON DayTrans.CustCode = Customer.CustCode
>
>Since you need all field from one of the table, you could also write:
>SELECT DayTrans.*, Customer.Address
>FROM DayTrans INNER JOIN Customer
>ON DayTrans.CustCode = Customer.CustCode
Am I right to say that the SQL Statement will return all rows from
the DayTrans table and cross reference (using the CustCode key) to
Customer and return only the Address if found? Thanks.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only