Data Models Data Modelling and Analysis
Data Models Data Modelling and Analysis
System Development
DATA MODELS: [2] Data Modeling and
Analysis
Topic 4
SEMESTER 2, 2022 2
Learning Outcome
To evaluate data models used in systems analysis and design
Objectives:
◦ Define systems modeling and differentiate between logical and physical system
models.
◦ Define data modeling and explain its benefits
◦ Recognize and understand the basic concepts and constructs of a data model
◦ Read and interpret entity relationship data model
◦ Explain when data models are constructed during a project and where the models are
stored
◦ Discover entities and relationships
◦ Construct entity relationship context diagram
SEMESTER 2, 2022 3
Data Modeling
Data modeling – a technique for organizing and
documenting a system’s data. Sometimes called database
modeling.
entity
Student ID Last Name First Name
2144 Arnold Betty
3122 Taylor John
3843 Simmons Lisa
bidirectional
Relationships may
exist between more
than two entities and
are called N-ary
relationships.
The example ERD
depicts a ternary
relationship.
Associative entity
An entity that inherits its
primary key from more than
one other entity (called
parents).
Many-to-many
relationships can
be resolved with
an associative
entity.
Many-to-Many Relationship
SEMESTER 2, 2022 45
Normalization: 1NF, 2NF,
3NF
First normal form (1NF) – entity whose attributes have no more than one value for
a single instance of that entity
◦ Any attributes that can have multiple values actually describe a separate entity,
possibly an entity and relationship.
Second normal form (2NF) – entity whose nonprimary-key attributes are dependent
on the full primary key.
◦ Any nonkey attributes dependent on only part of the primary key should be
moved to entity where that partial key is the full key. May require creating a new
entity and relationship on the model.
Third normal form (3NF) – entity whose nonprimary-key attributes are not
dependent on any other non-primary key attributes.
◦ Any nonkey attributes that are dependent on other nonkey attributes must be
moved or deleted. Again, new entities and relationships may have to be added to
the data model.
Transitive dependency –
when the value of a nonkey
attribute is dependent on the
value of another nonkey
attribute other than by
derivation.
SEMESTER 2, 2022 55