Database Management Systems - ER Diagram
Name: Syed Muhammad Noor Ali Shah
Registration Number: 2021-CE-36
Course: Database Management Systems
Submitted to: Sir Waseem
Department of Computer Engineering
University of Engineering & Technology, Lahore
This repository contains an Entity-Relationship (ER) Diagram for a database management system created as part of the course "Database Management Systems." The ER Diagram represents various entities and their relationships in a database system. Below, you will find details about the entities identified, relationships established, and constraints on the ER Diagram.
Question 1 - Entities and Relationships
Entities Identified:
- Campus (Strong entity) - unique ID (key), name, address (composite), city, state, country, and URL.
- User (Strong entity) - unique ID (key), first name, last name, email, phone (multivalued).
- College - unique ID (key), name, phone, email, and URL.
- Course - code (key), number, credit, and title.
- Student - undergraduate or graduate?
- Faculty - rank.
- Supervisor - Office hours (derived).
- Tutor - pay rate, list_of_courses.
- Non Academic Unit - job description.
Relationships:
- Campus to College: 1:N (One campus can have multiple colleges).
- Campus to Non-Academic Unit: 1:N (One campus can have multiple non-academic units).
- College to Courses: 1:N (One college can offer multiple courses).
- College to Tutor: N:(0,..N) (A college can have zero or more tutors).
- Tutor to Courses: 1:(0,..N) (A tutor can teach zero or more courses).
- Supervisor to Tutor: 1:(0,..N) (A supervisor can supervise zero or more tutors).
- On-Call: 1:(0,..N) (Represents an on-call relationship, details not provided).
- Appointment (tutor-student): 1:(0,..N) (Represents appointments between tutors and students, details not provided).
Question 2 - ER Diagram Screenshot
Question 3 - ER Diagram Screenshot and Constraints
a) Supply (min, max) constraints on the given diagram:
b) Under what conditions would the relationship "HAS PHONE" be redundant in this example?
The relationship "HAS PHONE" would become redundant if we can directly associate phones with employees through the "WORKS IN" relationship. If we remove the "HAS PHONE" relationship and still maintain the ability to determine which phones belong to which employees through their department assignments (i.e., "WORKS IN" relationship), then the "HAS PHONE" relationship is redundant.
So, under normal conditions, the "HAS PHONE" relationship is not redundant, as it explicitly associates phones with employees, ensuring that each employee can have their assigned phones, which may not necessarily be the same as the department's phones.