Mid Term Exam
Mid Term Exam
Fall 2023
Instructions:
Question Score
1 (20 points)
2 (20 points)
3 (20 points)
4 (20 points)
5 (20 points)
Good Luck!
Question 1
Figure 1
MEMBERSHIP
Mem_ Mem_ Mem_ Mem_ Mem_
Mem_Street Mem_City Mem_Zip
Num Fname Lname State Balance
102 Tami Dawson 2632 Takli Circle Norene TN 37136 11
103 Curt Knight 4025 Cornell Court Flatgap KY 41219 6
104 Jamal Melendez 788 East 145th Avenue Quebeck TN 38579 0
105 Iva Mcclain 6045 Musket Ball Circle Summit KY 42783 15
106 Miranda Parks 4469 Maxwell Place Germantown TN 38183 0
107 Rosario Elliott 7578 Danner Avenue Columbia TN 38402 5
108 Mattie Guy 4390 Evergreen Street Lily KY 40740 0
109 Clint Ochoa 1711 Elm Street Greeneville TN 37745 10
110 Lewis Rosales 4524 Southwind Circle Counce TN 38326 0
111 Stacy Mann 2789 East Cook Avenue Murfreesboro TN 37132 8
112 Luis Trujillo 7267 Melvin Avenue Heiskell TN 37754 3
113 Minnie Gonzales 6430 Vasili Drive Williston TN 38076 0
Use the MEMBERSHIP relation provided in figure 1 above to answer this question.
a. Give the heading of the relation (a relation heading is a set of (attribute, domain) pairs).
Figure 2
b. Given the business rule(s) you wrote in question 2-a, create the basic Crow’s Foot ERD.
Question 3
Use the database composed of the two tables shown in Figure 3 below to answer Questions
3a – 3c
c. Create the relational diagram to show the relationship between DIRECTOR and PLAY.
Question 4
Sunrise Products has hired you to develop a database for their company.
Customers place orders for the company’s products. It is important to have mailing information for each
customer, including name and complete address. Each order must have a date and a unique order
number. Products have a unique product number that distinguishes them from other products. Products
also have a name, description, and number in inventory.
Questions
1. Identify:
a. Entities
b. Relationships
c. attributes
2. Draw:
a. The initial ERD (without associative entities)
b. The final ERD (with associative entities)
Question 5
1. Given the dependency diagram shown in Figure 4 below, answer questions 5a-5b:
A1 A2 A3 A4 A5 A6 A7 A9 A10
b. Create a database whose tables are at least in 2NF, showing the dependency diagrams for each
table.
• Functional Dependency