Sie sind auf Seite 1von 5

NAME:

MUJTABA AZIZ

ROLL NO:

MITM-F18-063

CLASS:

MIT (2A)

ASSIGNMENT:

DBMS

QUESTION #1
A university registrar’s office maintains data about the following entities: (a) courses,
including number, title, credits, syllabus, and prerequisites; (b) course offerings,
including course number, year, semester, section number, instructor(s), timings, and
classroom; (c) students, including student-id, name, and program; and (d) instructors,
including identification number, name, department, and title. Further, the enrollment
of students in courses and grades awarded to students in each course

SOLUTION 
s.id name time secno room id name

student Enrolls course teaches instructor


offerings

year semester dept title


grade
program
is
offered

syllabus course.no

prerequisite
requires course title
maincourse

credits

E-R DIAGRAM FOR A UNIVERSITY.


SOLUTION #2  AGGREGATION
In aggregation, the relation between two entities is treated as a single entity. In
aggregation, relationship with its corresponding entities is aggregated into a
higher level entity.

EXAMPLE 1: Center entity offers the Course entity act as a


single entity in the relationship which is in a relationship with
another entity visitor. In the real world, if a visitor visits a
coaching center then he will never enquiry about the Course
only or just about the Center instead he will ask the enquiry
about both.

EXAMPLE: 2
Employees work for projects. An employee working for a particular project
uses various machinery.

ER-DIAGRAM OF EXAMPLE 1

name deadline name

employee works project


in

requires

machinery

Name
ER-DIAGRAM OF EXAMPLE 2

Das könnte Ihnen auch gefallen