Week 4 - Databse Design Using Relational Model
Week 4 - Databse Design Using Relational Model
2024-25)
Dr. Yadvendra Pratap Singh
Assistant Professor(Senior Scale)
Department of AIML, School of Computer Science and Engineering
Manipal University Jaipur
Week 4 : ERD Relational Model
ER Diagram
Outline
Reducing ER Diagrams to Relational Schemas
Extended E-R Features
• Drawback: getting information about, an employee requires accessing two relations, the one corresponding
to the low-level schema and the one corresponding to the high-level schema.
Method 2:
• Form a schema for each entity set with all local and inherited attributes
• Drawback: name, street and city may be stored redundantly for people who are both students and
employees
• For an overlapping specialization (as is the case for student and employee as
specializations of person), two separate arrows are used. For a disjoint
specialization (as is the case for instructor and secretary as specializations of
employees), a single arrow is used.
27/02/2025 Dept. of AIML, SCSE, Manipal University Jaipur 21
Aggregation
• Consider the ternary relationship proj_guide, which we saw earlier
• Suppose we want to record evaluations of a student by a guide on a
project
• It appears that the relationship sets proj_guide and eval for can be
combined into one single relationship set. Nevertheless, we should
not combine them into a single relationship since some instructor,
student, and project combinations may not have an associated
evaluation.
• The special value null is a member of every domain. Indicated that the value is
“unknown”
• The null value causes complications in the definition of many operations