ERD Exercises
ERD Exercises
Entities:
Relationships:
Student-Department: Many-to-One
Student-Course: Many-to-Many
Course-Department: Many-to-One
QUESTION 2
Entities:
Relationships:
Student-Activity: Many-to-Many
Activity-Coach: Many-to-One
QUESTION 3
Entities:
Relationships:
Customer-Room: One-to-Many
o A Customer may rent only one Room, but a Room may have many
Customers.
Employee-Department: Many-to-One
Employee-Room: Many-to-One
o An Employee serves many Rooms, but each Room is served by only one
Employee.
QUESTION 4
Entities:
Relationships:
Branch-Employee: One-to-Many
Primary Keys:
Branch: branchno
Employee: empno
QUESTION 5:
Entities:
Relationships:
HOMEWORK 1:
Entities:
Relationships:
Movie-Director: Many-to-One
Primary Keys:
Member: username
Movie: movie_id
Director: director_id
HOMEWORK 2:
Entities:
Relationships:
Department-Employee: One-to-Many
Division-Department: One-to-Many
Primary Keys:
Employee: employee_id
Department: department_id
Division: division_id
Project: project_name
HOMEWORK 3:
Entities:
Relationships:
Branch-Employee: One-to-Many
Primary Keys:
Branch: branch_no
Employee: emp_no
HOMEWORK 4:
Entities:
Relationships:
Primary Keys:
Employee: employee_id
Property: property_id
Owner: owner_id