ERD_UNIVERSITY_UNIT2
ERD_UNIVERSITY_UNIT2
database application(DBMS)?
Reference Link:
https://www.tutorialspoint.com/draw-an-er-diagram-for-a-university-database-application-dbms
Problem
Solution
Follow the steps given below to draw an Entity Relationship (ER) diagram for a University
database application −
Department
Course
Student
Instructor
Head of the Department (HOD) is not an entity set. It is a relationship between the instructor
and department entities.
1
Step 3 − Identifying the Key attributes
The department offers multiple courses and each course belongs to only one
department, hence cardinality between department and course if one to many.
One course is enrolled by multiple students and one student for multiple courses.
Hence, relationships are many to many.
One department has multiple instructors and one instructor belongs to one and only
one department, hence the relationship is one to many.
Each department has one “HOD” and one instructor is “HOD” for only one
department, hence the relationship is one to one. Here, HOD refers to the head of the
department.
2
One course is taught by only one instructor but one instructor teaches many courses
hence the relationship between course and instructor is many to one.
The relationship between instructor and student is not defined because of the following
reasons −
3
OR
Reference Link:
4
https://www.thetechplatform.com/post/er-diagram-example-university-database
The university database stores details about university students, courses, the semester a
student took a particular course (and his mark and grade if he completed it), and what degree
program each student is enrolled in.
The database is a long way from one that’d be suitable for a large tertiary institution, but it
does illustrate relationships that are interesting to query, and it’s easy to relate to when you’re
learning SQL.
Although it is compact, the diagram uses some advanced features, including relationships that
have attributes and two many-to-many relationships.
5
6