An in-depth exploration of data models, their importance in database design, and the evolution of major data models. Learn about entities, attributes, relationships, business rules, and data abstraction levels. Discover the advantages and disadvantages of various data models, including the relational model, entity relationship model, and object-oriented model.
Download Understanding Data Models: Importance, Building Blocks, and Evolution and more Slides Introduction to Database Management Systems in PDF only on Docsity!
Data Model
In this chapter, you will learn:
Why data models are important
About the basic data-modeling building blocks
What business rules are and how they affect database design
How the major data models evolved, and their advantages and disadvantages
How data models can be classified by level of abstraction
Importance of Data Modeling
End-users have different views and needs for data
Data model organizes data for various users
Data Model Basic Building Blocks
Entity is anything about which data are to be collected and stored
Attribute is a characteristic of an entity
Relationship describes an association among (two or more) entities - One-to-many (1:M) relationship - Many-to-many (M:N or M:M) relationship - One-to-one (1:1) relationship
Business Rules (continued)
Must be rendered in writing
Must be kept up to date
Sometimes are external to the organization
Must be easy to understand and widely disseminated
Describe characteristics of the data as viewedby the company
Sources of Business Rules
Company managers
Policy makers
Department managers
Written documentation
Procedures
Standards
Operations manuals
Direct interviews with end users
The Evolution of Data Models
Hierarchical
Network
Relational
Entity relationship
Object oriented
The Hierarchical Model—Evolution
GUAM (Generalized Update Access Method) - Based on the recognition that the many smaller parts would come together as components of still larger components
Information Management System (IMS)
World’s leading mainframe hierarchical database system in the 1970s and early 1980s
A Hierarchical Structure
Hierarchical Structure—
Characteristics
Each parent can have many children
Each child has only one parent
Tree is defined by path that traces parent segments to child segments, beginning from the left
Hierarchical path
Ordered sequencing of segments tracing hierarchical structure
Preorder traversal or hierarchic sequence
“Left-list” path Docsity.com
The Hierarchical Model (continued)
Disadvantages
Complex implementation
Difficult to manage
Lacks structural independence
Complex applications programming and use
Implementation limitations
Lack of standards
Child with Multiple Parents
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 actually 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
Schema Data Definition Language (DDL)
Enables database administrator to define schema components
Subschema DDL
Allows application programs to define database components that will be used