Defining Relationships Among Tables

When the primary key from one table is present in another table, you can create a relationship between the two tables. This ability to link two (or more) tables together is one reason why relational databases are so powerful—you make your data easier to read by creating simple tables and then use your computer’s processing power to combine tables of data into useful information you can use to make business decisions.

Define a Relationship

  1. Click the Database Tools tab.

  2. Click Relationships.

  3. If one or more of the tables you want to relate don’t appear in the Relationships window, click the Show Table button.

  4. Click the first table to add to the Relationships window.

  5. Click Add.

  6. Repeat steps 4 and 5 as necessary.

  7. When you finish adding tables, click Close.

  8. Drag the primary key field from the first table to the corresponding foreign key field in the second table.

  9. Click Create.

  10. Click the Close button to close the Relationships window.

    Define a Relationship
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset