Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Query to join tables
Message
 
À
20/07/2000 13:34:06
Information générale
Forum:
Visual Basic
Catégorie:
Bases de données DAO/RDO/ODBC/ADO
Divers
Thread ID:
00394741
Message ID:
00395315
Vues:
10
>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
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform