Professional Documents
Culture Documents
PROJ 110 Assignment - Docx 1
PROJ 110 Assignment - Docx 1
E-R Constructors in the UNIVERSITY context are used to model relationships between entities such
as students, courses, and departments. The three main types of E-R Constructors are generalization,
specialization, and aggregation. An example
Of generalization is representing a superclass 'Person' and its subclasses 'Student' and 'Faculty'.
Specialization is used to represent a subclass with additional attributes or relationships, such as
'Student' with attributes like 'Major' and 'GPA'. Aggregation represents a relationship where one
entity is composed of multiple instances of another entity, such as 'Department' composed of
multiple 'Course' instances.
2. What are the 3 degrees of a relationship? Give an example for each (different form the slides).
Unary
In a particular class, we have many students, there are monitors too. So, here class monitors are also students.
Thus, we can say that only students are participating here. So the degree of such type of relationship is 1.
Students
R
Binary
‘Student’ and ‘ID’ where each ‘Student’ has his ‘ID’. So, here two entity types are associating we can say it is a binary
relationship
ID has Student
Ternary
We have three entity types ‘Teacher’, ‘Course’, and ‘Class’. The relationship between these entities is defined as the
teacher teaching a particular course, also the teacher teaches a particular class. So, here three entity types are
associating we can say it is a ternary relationship.
Course R
Teacher
Class
3. Draw the EER diagram for the following requirements: