diff --git a/README.md b/README.md index 5bac23a..7592601 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Exam 1 - Queen Anne Curiosity Shop +# Exam 2 - Queen Anne Curiosity Shop and Writer's Patrol ## Instructions - Answer Questions A through G found on pages 187-189 in Chapter 3 for the Queen Anne Curiosity Shop. @@ -13,8 +13,10 @@ ## Questions A-G in Chapter 3 ### Data - +Figure 3.33: Typical Sales Data ![alt text](./images/QACS-Ch3-img1.png "Table 1") + +Figure 3.34: Typical Purchase Data ![alt text](./images/QACS-Ch3-img2.png "Table 2") ### Questions @@ -62,6 +64,39 @@ G.) The relations in your design from part D and part F are not connected. Modif ## Questions A-G in Chapter 4 +### Question Information +The Queen Anne Curiosity Shop project questions in Chapter 3 asked you to create a set of relations to organize and link the Queen Anne Curiosity Shop typical sales data shown in Figure 3-33 and the typical purchase data shown in Figure 3-34. The set of relations may look similar the following, although some additional columns have been added to the CUSTOMER relation to more closely match the Queen Anne Curiosity Shop database schema shown in the Project Questions for Chapter 2: + + - CUSTOMER (CustomerID, LastName, FirstName, EmailAddress, EncryptedPassword, Address, City, State, ZIP, Phone, ReferredBy) + - SALE (SaleID, CustomerID, InvoiceDate, PreTaxTotal, Tax, Total) + - SALE_ITEM (SaleID, SaleItemID, PurchaseID, SalePrice) + - PURCHASE (PurchaseID, PurchaseItem, PurchasePrice, PurchaseDate, VendorID) + - VENDOR (VendorID, Vendor, Phone) + +Figure 4.1: Guidelines for Assessing Table Structure +![alt text](./images/Table_Structure-Guidelines.png "Table 2") + +### Questions +A.) Follow the procedure shown in Figure 4-1 to assess these data. +1. List all functional dependencies. +2. List any multivalued dependencies. +3. List all candidate keys. +4. List all primary keys. +5. List all foreign keys. +6. State any assumptions you make as you list these components. + +B.) List questions you would ask the owners of the Queen Anne Curiosity Shop to verify your assumptions. + +C.) If there are any multivalued dependencies, create the tables needed to eliminate these dependencies. + +D.) Do these data have the multivalue, multicolumn problem? If so, how will you deal with it? + +E.) Do these data have the inconsistent data problem? If so, how will you deal with it? + +F.) Do these data have a null (missing) value data problem? If so, how will you deal with it? + +G.) Do these data have the general-purpose remarks problem? If so, how will you deal with it? + ## Questions A and B in Chapter 5 ## Questions A-E in Chapter 5 diff --git a/images/Table_Structure-Guidelines.png b/images/Table_Structure-Guidelines.png new file mode 100644 index 0000000..1b8c41f Binary files /dev/null and b/images/Table_Structure-Guidelines.png differ