Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Assignment 0 2 You need to change table design and write the new table design in shorthand representations. No need to write SQL commands or

Assignment 02
You need to change table design and write the new table design in shorthand representations. No need to write SQL commands or table data.
Questions:
KimTay Pet Supplies
1. Indicate the changes (using the shorthand representation) that you would need to make to the original KimTay Pet Supplies database design (see Figure 2-1 of textbook) to support the following requirements. A customer is not necessarily represented by a single sales rep, but can be represented by several sales reps. When a customer places an order, the sales rep who gets the commission on the invoice must be in the collection of sales reps who represent the customer.
(Hint: The CUSTOMER table no longer need a REP_ID because one customer maybe represented by multiple sales reps. To record the representation relationship between a customer and sales rep, you need to create a new table including only the CUST_ID and REP_ID.)
2. Indicate the changes (using the shorthand representation) that you would need to make to the original KimTay Pet Supplies database design to support the following requirements. There is no relationship between customers and sales reps. When a customer places an order, any sales rep can process the order and create the invoice. On the invoice, you need to identify both the customer placing the order and the sales rep responsible for the invoice.
(Hint: REP_ID is no longer needed in CUSTOMER table but in the INVOICES table.)
3. Using your knowledge of KimTay Pet Supplies:
a. write out the functional dependencies that exist in the following ITEM table.
b. convert this table to an equivalent collection of tables that are in third normal form (3NF).
ITEM (ITEM_ID, DESCRIPTION, ON_HAND, CATEGORY, LOCATION, PRICE, (INVOICE_NUM, INVOICE_DATE, CUST_ID, FIRST_NAME, LAST_NAME, QUANTITY, QUOTED_PRICE))
(Hint: a) Write out the functional dependencies. b) This question is very similar with the example of converting the STUDENT table from unnormalized to 3NF in textbook Module 2 Q&A (page 42) and in our chapter 02 slides. Read and understand the STUDENT table example to answer this question. No need to draw ER diagram.)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Expert Oracle Database Architecture

Authors: Thomas Kyte, Darl Kuhn

3rd Edition

1430262990, 9781430262992

More Books

Students also viewed these Databases questions