Chapter 10A – Managing Databases with SQL Server 2017
Page 10A-75
❖ ANSWERS TO MARCIA’S DRY CLEANING CASE QUESTIONS
Marcia Wilson owns and operates Marcia’s Dry Cleaning, which is an upscale dry cleaner
in a well-to-do suburban neighborhood. Marcia makes her business stand out from the
competition by providing superior customer service. She wants to keep track of each of
her customers and their orders. Ultimately, she wants to notify them that their clothes are
ready via e-mail. Suppose that you have designed a database for Marcia’s Dry Cleaning
that has the following tables:
CUSTOMER (CustomerID, FirstName, LastName, Phone, EmailAddress)
The referential integrity constraints are:
CustomerID in INVOICE must exist in CustomerID in CUSTOMER
Assume that CustomerID of CUSTOMER and InvoiceNumber of INVOICE are surrogate
keys with values as follows:
Further, assume that ServiceID is a surrogate key, but not one that automatically
increments—the values of ServiceID are assigned by Marcia’s Dry Cleaning management
when new services are added at Marcia’s Dry Cleaning.
A. Specify NULL/NOT NULL constraints for each table column.
See the answer combined with the answer to question B below.