Answered step by step
Verified Expert Solution
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
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
Indicate the changes using the shorthand representation that you would need to make to the original KimTay Pet Supplies database design see Figure 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 REPID 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 CUSTID and REPID
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: REPID is no longer needed in CUSTOMER table but in the INVOICES table.
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 NF
ITEM ITEMID DESCRIPTION, ONHAND, CATEGORY, LOCATION, PRICE, INVOICENUM, INVOICEDATE, CUSTID FIRSTNAME, LASTNAME, QUANTITY, QUOTEDPRICE
Hint: a Write out the functional dependencies. b This question is very similar with the example of converting the STUDENT table from unnormalized to NF in textbook Module Q&A page and in our chapter 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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started