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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.