Database Management System 5: ER Modeling
Database Management System 5: ER Modeling
Chittaranjan Pradhan
System 5 Entity-
Relationship(ER)
Model
Mapping Cardinality
Representation
Chittaranjan Pradhan
School of Computer Engineering,
KIIT University
5.1
ER Modeling
Overview of the Database Design Process
Chittaranjan Pradhan
Overview of the
Database Design
• The initial phase of database design is to characterize fully Process
Attribute Types
• Next, the designer chooses a data model and, by applying
Mapping Cardinality
the concepts of the chosen data model, translates these Representation
5.2
ER Modeling
Overview of the Database Design Process...
Chittaranjan Pradhan
Overview of the
Database Design
Process
Entity-
• The process of moving from an abstract data model to the Relationship(ER)
Model
implementation of the database proceeds in two final Attribute Types
design phases: Mapping Cardinality
Representation
• In the logical design phase, the designer maps the
high-level conceptual schema onto the implementation data
model of the database system that will be used. The
implementation data model is typically the Relational data
model
• Finally, the designer uses the resulting system-specific
database schema in the subsequent physical-design phase,
in which the physical features of the database are specified
5.3
ER Modeling
Entity-Relationship(ER) Model
Chittaranjan Pradhan
Overview of the
Entity-Relationship(ER) Model Database Design
Process
model is very much useful in mapping the meaning and Mapping Cardinality
Representation
interactions of real-world enterprises onto a conceptual
schema
Entities
An entity is a thing or object in the real world that is
distinguishable from all other objects, i.e. an entity is an object
of interest to the end user. The set of similar types of entities is
called entity set; which is represented by a rectangle
containing the entity set’s name. The entity set name, a noun,
is usually written in all capital letters
5.4
ER Modeling
Entity-Relationship(ER) Model...
Chittaranjan Pradhan
Attributes
Attributes are characteristics of entities. Attributes are Overview of the
Database Design
represented by ovals and are connected to the respective Process
entity set with lines. In the conceptual modeling, the value of an Entity-
Relationship(ER)
attribute comes from a domain of possible values Model
Attribute Types
NULL Values
An attribute takes a NULL value when an entity doesn’t have a
value for it. The NULL values may indicate not applicable, i.e.
the value doesn’t exist for the entity. NULL can also designate
that an attribute value is unknown. An unknown value may be
either missing or not known. NULL value is an entry in all the
domains 5.5
ER Modeling
Attribute Types
Chittaranjan Pradhan
5.6
ER Modeling
Attribute Types...
Chittaranjan Pradhan
Entity-
are referred to as single-valued attribute. However, attributes Relationship(ER)
Model
that can have more than one value are known as multi-valued
Attribute Types
attributes. It is represented by double oval Mapping Cardinality
Representation
5.7
ER Modeling
Attribute Types...
Chittaranjan Pradhan
Overview of the
Stored and Derived attributes Database Design
Process
The attribute with independent existence is called as stored Entity-
attribute where as the attribute, whose value is depending on Relationship(ER)
Model
other stored attribute, is called as derived attribute. The derived Attribute Types
attribute is represented by the dotted oval Mapping Cardinality
Representation
5.8
ER Modeling
Attribute Types...
Chittaranjan Pradhan
Overview of the
Database Design
Process
Entity-
Descriptive attributes Relationship(ER)
Model
attributes for representing the description about the association Mapping Cardinality
Representation
5.9
ER Modeling
Mapping Cardinality Representation
Chittaranjan Pradhan
M:N relationship
Overview of the
Database Design
An entity in A is associated with any number (zero or more) of Process
Attribute Types
Mapping Cardinality
Representation
5.10
ER Modeling
Mapping Cardinality Representation...
Chittaranjan Pradhan
1:M relationship
Overview of the
An entity in A is associated with any number (zero or more) of Database Design
Process
entities in B; an entity in B, however, is associated with no Entity-
more than 1 entity set of A Relationship(ER)
Model
Attribute Types
Mapping Cardinality
Representation
5.11
ER Modeling
Mapping Cardinality Representation...
Chittaranjan Pradhan
1:1 relationship
Overview of the
Database Design
An entity in A is associated with no more than 1 entity of B; and Process
Attribute Types
Mapping Cardinality
Representation
5.12