Chapter 8 – Database Redesign
Page 8-27
D. Suppose that Marcia decides to allow multiple customers per order (for customers’
spouses, for example). Modify the design of these tables to accommodate this change.
We will assume that the name change from INVOICE to CUST_INVOICE described above has
(1) Create the intersection table. Foreign key constraints can be done while creating the table or
as a separate step.
So we would:
(1) Create the INVOICE_CUSTOMER_INT. Since we normally create foreign key constraints
when we create a table, we will do the foreign key constraints between
INVOICE_CUSTOMER_INT and CUSTOMER and between INVOICE_CUSTOMER_INT and
CUST_INVOICE while creating the intersection table.
E. Code SQL statements necessary to redesign the database, as described in your answer
to question D.
INVOICE_CUSTOMER_INT (InvoiceNumber, CustomerSK )
(1) Create the intersection table. Foreign key constraints can be done while creating the table or
as a separate step.
CREATE TABLE INVOICE_CUSTOMER_INT(
InvoiceNumber Int NOT NULL,