Home | Previous Page | Next Page   Appendix A. The stores_demo Database > Primary-Foreign Key Relationships >

The state and customer Tables

The state table and the customer table are joined by a column that contains the state code. This column is called code in the state table and state in the customer table. If several customers live in the same state, the same state code appears in several rows of the table. In the customer table, the state column is a foreign key that references the code column in the state table. Figure 14 shows this relationship.

Figure 14. Relationship Between the state Column and the code Column
begin figure description -- This figure shows data from portions of rows in the customer table and in the state table, where the state column in the customer table is a foreign key that references the code  column in the state table.  -- end figure description
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]