Joining Tables to Create Multitable Queries
Before you can create joins between tables, you must know the contents of the tables' fields and which fields are related by common values. As mentioned in Chapter 4, assigning identical names to primary- and foreign-key fields in different tables that contain related data is a common practice. This approach, used by Microsoft when creating the Northwind Traders sample database, makes determining relationships and creating joins among tables easier. The CustomerID field in the Customers table and the CustomerID field in the Orders table, for example, are used to join orders with customers.
Figure 10.1 shows the structure of the Northwind Traders database with a graphical display of the joins between ...
Get Special Edition Using Access 97, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.