Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LAB 2 Assignment Instructions Materials and Resources ASSIGNMENT INSTRUCTIONS To complete this assignment: Read the case example and carry out all of the tasks. Then
LAB
Assignment Instructions
Materials and Resources
ASSIGNMENT INSTRUCTIONS
To complete this assignment:
Read the case example and carry out all of the tasks. Then submit your lab to the assignment submission folder.
Case Example: Suppose that you are hired by a used record store to build a database for their inventory. They tell you that they have some data needs, including:
The format LP CD DVD
Title of the item
A list of songs
A list of artists credited on the album cover
Price the item was bought for
ID of the Customer the item was bought from if not registered
Name of customer the item was bought from
Date the item was sold for still in stock
ID of the customer the item was sold to for unsold, for not registered
Name of the customer the item was sold to
Price the item was sold for
To reduce inefficiencies and anomalies, you recognize that you need more than one table.
Section A Developing Requirements Marks: Answer the following questions:
If you convert this to first normal form, which attributes need to be pulled into a separate table marks
Normal forms
Keeping the customer ID and customer name in the same table as the record sales information for both the customer who sold you the record and the customer who you sold it to violates which normal form requirement marks
How would you adjust to meet the requirements of this normal form marks
Section B Design Marks: Answer the following questions:
In order to satisfy requirements for NF what tables would you recommend to store all the required information marks
What changes, if any, would you make so that the NF design satisfies BCNF marks
Section C Queries Marks: Complete the following tasks:
Resale Query: Using your design, describe the tables and attributes you would need to write a query that identifies any record bought by a customer, and then later presented to be sold back to you by that same customer. Do not write the query! marks
Song Title Query: Write an SQL query that could take a word, find all song titles that contain that word, and return the name of the albums that include those songs marks
Creating Queries
Write a query to identify which albums are held in inventory in multiple copies and how long the oldest copies have been in stock marks
Answer these questions: Would you recommend keeping one row per album even if there are multiple copies? How would that affect your design? marks
Section D Updates Marks: Answer the following question:
How would you add information about the quality of the record Mint Excellent, Good, Scratched, Junk marks
Refer to this rubric for scoring.
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