Agenda
IUse of ER Model for Conceptual Models
IBasic Structure of ER Model
IExample of ER model development
IDiscussion
2 / 27
ER Model
IConcise description of data requirements of the users
IFor better visualization of entities and relations
IUnderstanding concepts involved in the miniworld
INo implementation details
3 / 27
Basic Elements of ER Model
The miniworld is described in terms of:
IEntity
IAttribute
IRelationships
4 / 27
Description of an Example of a miniworld
Every student is identied by his student number. The system
also knows about his Date of Birth, current and permanent
addresses, and his joining date. Every student registers for
some courses or works for projects or does both. Student can
either audit the course or take it for credit. He obtains grades
for the courses he takes on credit. These grades are available
for all the subjects the student has taken on credit till now.
These credits decide whether he has passed or failed in the
subject.
5 / 27
Description of an Example of a miniworld
Every course is oered by one or more professors (combined).
So, each faculty member spends a specic number of hours on
the course he oers. A professor can be involved in oering
many courses. Every course belongs to a stream. It also has a
name, unique course number. There are some credit
associated with the course.
6 / 27
Description of an Example of a miniworld
Professor may be in-charges of a lab. A lab can have one or
more in-charges. A lab can have multiple projects running
under it from specic start dates. If a student opts to work for
a projects, then depending upon the need of the project, he
has to spend some know amount of time on the project.
Similar to the student id, there will be unique identication
numbers for every faculty member, lab and project.
7 / 27
Elements of ER Model
IEntity
IAttribute
IComposite versus Simple (Atomic) Attributes
ISingle-Valued versus Multivalued Attributes
IStored versus Derived Attributes
INull Attributes (NA)
8 / 27
Elements of ER Model
IEntity Set
IKey Attributes of an Entity Type (uniqueness constraint)
IValue Sets (Domains) of Attributes.
IValue Set of composite attribute.
V=P(V1)XP(V2)X:::XP(Vn)
whereP(Vi) is the powerset ofVi.
9 / 27
Exploring Relationships
IRelationship Degree (unary, binary, ternary)
IRelationship as Attributes
IRole Names and Recursive Relationships
11 / 27
Constraints on Relationship Types
ICardinality Ratios for Binary Relationships
ITotal participation (existence dependency)
IPartial participation
12 / 27
Attributes of Relationship Types
Migration of Attributes from Relationship Types
IMigration in 1:1 Relationship type
IMigration in 1:N Relationship type.
IMigration in M:N Relationship type
13 / 27
Weak Entity Types
IOwner (identifying) entity type
IIdentifying relationship
IA weak entity type always has a total participation constraint.
IA weak entity type normally has Partial key
14 / 27
Summery of Symbols
Figure:
15 / 27
Student Academic Information System as ER Model
Let us list all the entities from the description given....
16 / 27
Relations between Entities
Let us List down....
17 / 27
References
IElmasri, R. and Navathe, S.B.Fundamentals Of Database
Systems. Pearson Education
IChen, P.P.The Entity Relationship Model - Towards a Unied
View of Data. ACM Transactions on Database Systems. 1976
18 / 27