Chapter 2
Chapter 2
Data Model
Database Systems:
Design, Implementation, and Management,
13th Edition, Rob and Coronel
In this chapter, you will learn:
Relationsh Constraints
Entity Attribute
ip
◎ 1:1 (one-to-one)
has
LECTURER ROOM
◎ 1:M (one-to-many)
has
PERSON CAR
◎ M:N (many-to-many)
served
NURSE WARD
Business Rules
◎ Is a brief, precise &
Unambiguous description
◎ To define entity, attributes,
of a policy / procedure /
relationship, constraint
within a specific
organization environment.
◎ Must be written /
documented properly.
◎ Is derived from a detailed
description of an
organization’s operation
(activity)
Business Rules
Where to GET? How to know??
◎ Allow designer to
◎ Promote creation of an understand the
accurate data model nature, role, and
scope of data ◎ Allow designer to
develop appropriate
◎ Standardize company’s relationship
view of data ◎ Allow designer to participation rules and
understand constraints
◎ Constitute a business
communications tool processes
between users and
designers
RECAP…5 min
Crucial Database Components
Crucial Database Components
Crucial Database Components
◎ Schema
◉ Conceptual organization of entire database as viewed by
the database administrator
◎ Subschema
◉ Defines database portion “seen” by the application
programs that produce the desired information from data
contained within the database
◎ Data Management Language (DML)
◉ Define data characteristics and data structure in order to
manipulate the data
Data Management Language
Components
Disadvantages
ADVANTAGES
◉ Conceptual simplicity ◉ Complex implementation
◉ Difficult to manage
◉ Database security
◉ Lacks structural independence
◉ Data independence ◉ Complex applications
programming and use
◉ Database integrity
◉ Implementation limitations
◉ Efficiency
◉ Lack of standards
The Network Model
◎ Created to
◉ Represent complex data relationships more
effectively
◉ Improve database performance
◉ Impose a database standard
◎ Conference on Data Systems Languages (CODASYL)
◎ American National Standards Institute (ANSI)
◎ Database Task Group (DBTG)
Network Model—Basic Structure
◎ Common characteristics:
◉ Conceptual simplicity without compromising the semantic
completeness of the database
◉ Represent the real world as closely as possible
◉ Representation of real-world transformations (behavior) must be in
compliance with consistency and integrity characteristics of any
data model
The Development of Data Models:
A Summary
Break…
Next subtopic:
Database Models and the Internet
Database Models and the Internet
✔ Flexible, efficient, and secure Internet access that is easily used, developed, and
supported
✔ A powerful DBMS graphical user interface (GUI) to help make the DBA’s job easier
Database Models and the Internet
Degrees of Data Abstraction
✔ Way of classifying data models
❖ Basis for identification and description of main data objects, avoiding details
❖ Most widely used conceptual model is the entity relationship (ER) model
❖ Software dependent
❖ Hardware independent
ADVANTAGES
• Use of database subsets makes application program development much simpler
• Facilitates designer’s task by making it easier to identify specific data required to support
each business unit’s operations
• Provides feedback about the conceptual model’s adequacy
• Creation of external models helps to ensure security constraints in the database design
The External Model for Tiny College
The Physical Model
❖ Operates at lowest level of
abstraction, describing the way data
are saved on storage media such as Levels of Data Abstraction
disks or tapes
✔ Hierarchical model:
▪ Based on a tree structure composed of a root segment, parent segments, and child segments
▪ Depicts a set of one-to-many (l:M) relationships between a parent and its children
▪ Does not include ad hoc querying capability
✔ Network model attempts to deal with many of the hierarchical model’s limitations
✔ Relational model
✔Data modeling requirements are a function of different data views (global vs. local) and level of data
abstraction