Chapter 2 - Data Models: Good Database Design Will Get You Through Poor
Chapter 2 - Data Models: Good Database Design Will Get You Through Poor
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
Hierarchical Structure—Characteristics
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
The Network Data Model
• Advantages
1. Conceptual simplicity is at least equal to that of the
hierarchical model.
2. It handles more relationship types, such as M:N and multi-
parent.
3. Data access is more flexible than in hierarchical and file
system models.
4. There is conformance to standards.
5. It includes data definition language (DDL) and data
manipulation language (DML) in DBMS.
The Network Data Model
• Disadvantages
1. System complexity limits efficiency—still a navigational
system.
2. Navigational system yields complex implementation,
application development, and management.
3. Structural changes require changes in all application programs.
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
Relationships: The Basic Crow’s Foot ERD
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
The Entity Relationship Model
• Advantages
– Exceptional conceptual simplicity
– Visual representation
– Effective communication tool
– Integrated with the relational data model
• Disadvantages
– Limited constraint representation
– Limited relationship representation
– No data manipulation language
4. The Relational Model
• Problems with early databases
– Navigating the records requires complex
programs
– There is minimal data independence
– No theoretical foundations
• Then, in 1970, E. F. Codd wrote “A
Relational Model of Data for Large Shared
Databanks” and introduced the relational
model
The Relational Model—Basic Structure
• Information is stored as tuples or records in
relations or tables
• There is a sound mathematical theory of relations
• Table (relations)
– Matrix consisting of intersecting rows and columns
– Related to each other by sharing a common
characteristic (attribute)
• Relational schema
– Visual representation of relational database’s entities,
attributes within those entities, and relationships
between those entities
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
The Relational Model Attributes
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
A Relational diagram
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
The Relational Model
• Advantages
– Structural independence (Changes in a table’s structure
do not affect data access or application programs)
– Tabular view improves conceptual simplicity
– Easier database design, implementation, management,
and use
– Ad hoc query capability is based on SQL.
– Powerful RDBMS isolates end-user from physical-level
details
• Disadvantages
– Substantial hardware and system software overhead
– Can facilitate poor design and implementation
5.The Object Oriented Model
• Semantic data model (SDM) developed by
Hammer and McLeod in 1981
• In object-oriented data model (OODM),
both data and their relationships are
contained in a single structure known as an
object.
• the OODM is the basis for the object-
oriented database management system
(OODBMS).
Object Oriented Data Model—
Basic Structure
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
A Comparison of OO Model
and ER Model
• Object representation of the INVOICE includes all
related objects within the same object box.
• 1 and M indicate the relationship of the related
objects to INVOICE. For example, 1 next to
CUSTOMER indicates each INVOICE is related to only
one CUSTOMER and M next to LINE indicates each
INVOICE contains many LINEs.
• ER model uses 3 separate entities and 2 relationships
to represent this simple invoice problem.
The Object Oriented Model
• The OODM is said to be a semantic data model
because semantic indicates meaning.
• Subsequent OODM development has allowed an
object to also contain all operations that can be
performed on it.
• Because objects include data, various types of
relationships and operational procedures, the object
becomes self-contained, thus making the object a
basic building block for autonomous structures.
Developments that
Boosted OODM’s Popularity
• Growing costs put a premium on code reusability
• Complex data types and system requirements
became difficult to manage with a traditional
RDBMS
• Ever-increasing computing power made it possible
to support the increasingly sophisticated
transaction & information requirements and the
large computing overhead required
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
The Object Oriented Model
• Advantages
– Visual presentation includes semantic content
– Database integrity
– Both structural and data independence
• Disadvantages
– Slow pace of OODM standards development
– Complex navigational data access
– Steep learning curve
– Lack of market penetration
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
6. Extended Relational Data Model (ERDM)
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
Database Models and the Internet
• The use of complex objects received a boost with the
Internet revolution.
• Extensible Markup Language (XML) emerged as the
standard for efficient and effective exchange of structured,
semi-structured, and unstructured data.
• Organizations using XML data soon realized the need to
manage large amounts of unstructured data such as WP
documents, Web pages, e-mails, diagrams, etc., found in
most of today’s organizations.
• To address this need, XML databases have emerged to
manage unstructured data within the XML format.
• And O/R DBMSs have added support for XML-based
documents within their relational data structure.
DBMS TYPES
Based on the data model used:
• Hierarchical – Pre-historic – IMS
• Network – Historic –IDMS, ADABAS, led to Object-Oriented
• RELATIONAL- current – 95% of the market – Oracle, Informix,
SQL Server, Progress, IBM DB2, etc.
• Object- ORIENTED Current – lot of HuHa but very narrow
market, mainly CAD AND Engineering – Objectivity, Versant,
Jasmine
• Object – Relational- Current / Future – SQL3, Informix UDO,
Oracle-10i, IBM DB2.
Data Abstraction
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
Summary
• A good DBMS will perform poorly with a poorly
designed database
• A data model is a (relatively) simple abstraction of a
complex real-world data-gathering environment
• Basic data modeling components are:
– Entities
– Attributes
– Relationships
• Hierarchical model - Depicts a set of one-to-many
(l:M) relationships between a parent and its children
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel
Summary (continued)
• Network model attempts to deal with many of the
hierarchical model’s limitations
• Relational model:
– Current database implementation standard
– Much simpler than hierarchical or network design
• Object is basic modeling structure of object oriented
model
• Data modeling requirements are a function of different
data views (global vs. local) and level of data abstraction
• The ANSI/SPARC Architecture defines 3 levels of data
abstraction: external, conceptual, and internal.
• Levels of abstraction provide data independence.
Database Systems: Design, Implementation, & Management, 6 th Edition, Rob & Coronel