Introduction To Database Models
Introduction To Database Models
REFERENCE TEXT:
CHA PT ER 0 2 : DATABA SE SYSTEMS: DES I GN, I M P L EMENTATIO N, A N D
M A N AGEMENT
Coronel, Carlos and Morris, Steven, Database Systems: Design, Implementation, and Management, 14 Edition. © 2023 Cengage. All Rights Reserved. May
not be scanned, copied or duplicated, or posted to a publicly accessible website, in whole or in part.
Learning Objectives
Will talk about data modeling and why data models are important ??
What business rules are and how they influence database design??
Database is:
Maintained in real-time.
Allows ad-hoc queries for data extraction for informed decision making.
Data Modeling and Data Models
Data modeling: Iterative and progressive process of creating a specific data model for a
determined problem domain.
Data models:
Simple representations of complex real-world data structures.
Useful for supporting a specific problem domain.
Model - Abstraction of a real-world object or event.
Describes the structure and format of data storage.
Defines the limitations place on the data stored through a series of defined constraints or
enforced rules.
Specifies operations performed on data through selection (queries) and modification
(insertion, updating and deleting).
Importance of Data Models
Business rules are used to define entities, attributes, relationships, and constraints.
◦ They must be easy to understand and widely disseminated.
Business rules are essential to database design due to the following reasons:
It is good practice to prefix the name of an attribute with the name or abbreviation of
the entity in which it occurs.
For example, in the CUSTOMER entity, customer’s credit limit may be called
CUS_CREDIT_LIMIT
◦ A collection of tables stored in the database – the tables “present” the data to
the end user in a way that is easy to understand.
◦ SQL engine – the SQL engine executes all queries or data requests.
The Entity Relationship Model (1)
Complex design activities require conceptual simplicity to yield successful results
Database designers prefer to use a graphical tool in which entities and their
relationships are pictured
◦ The entity relationship (ER) model (ERM) was developed to do just that
The relational data model and ERM combined to provide the foundation for
tightly structured database design
An entity relationship diagram (ERD) uses graphical representations to model
database components
The Entity Relationship Model (2 )
The ER model is based on the following components:
◦ Entity – an entity is represented in the ERD by a rectangle (entity box)
◦ Attributes – each entity consists of a set of attributes that describes
characteristics of the entity
◦ Relationships – relationships describe associations among data
The following are three ER notations:
◦ Chen notation
◦ Crow’s Foot notation
◦ Class diagram notation (part of the Unified Modeling Language (UML))
The Entity Relationship Model (3)
Column
Property
Attribute
Degrees of Data Abstraction (1)
The American National Standards Institute (ANSI) Standards Planning and
Requirements Committee (SPARC) defined a framework for data modeling based
on degrees of data abstraction.
The three levels of data abstraction are external, conceptual, and internal.
In Figure 2.6, on the following slide, the ANSI/SPARC framework has been
expanded with the addition of a physical model to explicitly address physical-
level implementation details of the internal model.
Degrees of Data Abstraction (2)
◦ It makes the designer’s job easy by providing feedback about the model’s
adequacy.
The physical model requires the definition of both the physical storage devices
and the (physical) access methods required to reach the data within those
storage devices.
◦ This means the physical model is both software and hardware dependent
When you can change the physical model without affecting the internal model,
you have physical independence .
Key Terms
1. Business Rule 6. Data Model
List different types of data models and compare relational with hierarchical and
network data models.
What is a table, and what roles does it play in the relational model?