Download presentation
Presentation is loading. Please wait.
1
Quiz 2 (Database Design)
MIS 320 Quiz 2 (Database Design)
2
Instructions Write your student number (not your name) on a piece of paper. This quiz contains four situations. Each is a set of sample data that has been arranged in a database table. Each of these contains an error. Your job is to identify the error (2 pts.) and suggest a solution (½ pt.). You may use any notes you have made and the class lecture notes. Each situation will be visible for 3 minutes [in this demo version, press enter to advance].
3
1. Activity Table ACTIVITY HOURS RATE TOTAL Measure for awning 2.5 $50
This is a derived attribute and should be removed. 1. Activity Table ACTIVITY HOURS RATE TOTAL Measure for awning 2.5 $50 $125 Fabricate awning 12 $75 $900 Install awning 6 $60 $360
4
2. Department Table Department Building Building Supervisor Accounting
This attribute does not depend on the primary key (Department) and should be moved to a different table. 2. Department Table Department Building Building Supervisor Accounting 403 North Sixth Fred Smith Human Resources 1312 Elm Sarah Ryan Purchasing
5
3. Employee Table Employee Name Dependent 1 Dependent 2 Dependent 3
This is a repeating group and should be moved to a new entity. 3. Employee Table Employee Name Dependent 1 Dependent 2 Dependent 3 Elmer Coltrane Ellen Coltrane Edgar Coltrane None Geoffrey Jones Gretta Jones Gunnar Jones Gwendolyn Jones Elizabeth Sharp
6
4. Bartender’s Table Drink Ingredient 1 Ingredient 2 Ingredient 3
There is a M:M relationship between drinks and ingredients which requires a new entity (ingredients) and an intersection table. 4. Bartender’s Table Drink Ingredient 1 Ingredient 2 Ingredient 3 Ingredient 4 Rum and Coke Rum (1½ oz.) Coke (6 oz.) Ice None Martini Vermouth (splash) Gin Olive (2) Bloody Mary Vodka Bloody Mary mix Celery stalk
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.