Database Management System Lecture 02 Intro Into Relational Database
Database Management System Lecture 02 Intro Into Relational Database
Database System Concepts - 7th Edition 6.2 ©Silberschatz, Korth and Sudarshan
Design Phases (Cont.)
Database System Concepts - 7th Edition 6.3 ©Silberschatz, Korth and Sudarshan
Design Alternatives
Database System Concepts - 7th Edition 6.4 ©Silberschatz, Korth and Sudarshan
Design Approaches
Database System Concepts - 7th Edition 6.5 ©Silberschatz, Korth and Sudarshan
Outline of the ER Model
Database System Concepts - 7th Edition 6.6 ©Silberschatz, Korth and Sudarshan
Entity Sets
An entity is an object that exists and is distinguishable from other
objects.
• Example: specific person, company, event, plant
An entity set is a set of entities of the same type that share the same
properties.
• Example: set of all persons, companies, trees, holidays
An entity is represented by a set of attributes; i.e., descriptive properties
possessed by all members of an entity set.
• Example:
instructor = (ID, name, salary )
course= (course_id, title, credits)
A subset of the attributes form a primary key of the entity set; i.e.,
uniquely identifying each member of the set.
Database System Concepts - 7th Edition 6.8 ©Silberschatz, Korth and Sudarshan
Representing Entity sets in ER Diagram
Database System Concepts - 7th Edition 6.10 ©Silberschatz, Korth and Sudarshan
Relationship Sets
Database System Concepts - 7th Edition 6.11 ©Silberschatz, Korth and Sudarshan
Relationship Sets (Cont.)
Database System Concepts - 7th Edition 6.12 ©Silberschatz, Korth and Sudarshan
Representing Relationship Sets via ER Diagrams
Database System Concepts - 7th Edition 6.13 ©Silberschatz, Korth and Sudarshan
Relationship Sets (Cont.)
An attribute can also be associated with a relationship set.
For instance, the advisor relationship set between entity sets instructor
and student may have the attribute date which tracks when the student
started being associated with the advisor
Database System Concepts - 7th Edition 6.14 ©Silberschatz, Korth and Sudarshan
Relationship Sets with Attributes
Database System Concepts - 7th Edition 6.15 ©Silberschatz, Korth and Sudarshan