Professional Documents
Culture Documents
By
Bob Larson
1
Overview
Why data models are important
Basic data-modeling building blocks
What are business rules and how do
they influence database design
How the major data models evolved
How data models can be classified by
level of abstraction
2
Importance of Data Models
Data models
Representations, usually graphical, of
complex real-world data structures
Facilitate interaction among the designer,
the applications programmer and the end
user
End-users have different views and
needs for data
Data model organizes data for various
users
3
Data Model Basic Building Blocks
Entity
Anything about which data will be collected/stored
Attribute
Characteristic of an entity
Relationship
Describes an association among entities
One-to-one (1:1) relationship
One-to-many (1:M) relationship
Many-to-many (M:N or M:M) relationship
Constraint
A restriction placed on the data
4
Business Rules
Brief, precise and unambiguous
descriptions of policies, procedures or
principles within the organization
Apply to any organization that stores
and uses data to generate information
Description of operations that help to
create and enforce actions within that
organization’s environment
5
Business Rules (continued)
Must be put in writing
Must be kept up to date
Sometimes external to the organization
Must be easy to understand and widely
disseminated
Describe characteristics of the data as
viewed by the company
6
Discovering Business Rules
Company managers
Policy makers
Department managers
Written documentation
Procedures
Standards
Operations manuals
Direct interviews with end users
7
Translating Business Rules
to Data Model Components
Standardize company’s view of data
Communication tool between users and
designers
Allow designer to understand the nature, role and
scope of data
Allow designer to understand business processes
Allow designer to develop appropriate relationship
participation rules and constraints
Promote creation of an accurate data model
Nouns translate into entities
Verbs translate into relationships among entities
Relationships are bi-directional 8
The Evolution of Data Models
13
Network Model
Advantages
Represents complex data relationships better than
Hierarchical Model
Improved database performance
Impose a database “industry” standard
Conference on Data Systems Languages (CODASYL)
Database Task Group (DBTG)
Disadvantages
Too cumbersome
Lack of “ad hoc” query capability
Put heavy pressure on programmers
Any structural change in the database could produce havoc
in all application programs that drew data from the database
14
The Relational Model
17
Relational Model – RDBMS
26
ORM
Not to be confused with Object-relational mapping
Provides a conceptual approach to modeling
Models the application area or universe of discourse (UoD)
Relevant set of entities that are being dealt with by quantifiers
Requires a good understanding of the UoD
Means of specifying this understanding in a clear, unambiguous
way
Simplifies design process with natural language and intuitive
diagrams
Can be populated with examples
Evolved from the Natural language Information Analysis Method
Mid-1970s
G. M. Nijssen and Dr. Terry Halpin first joint papers in 1989
Capable of capturing many business rules typically unsupported
in other popular data modeling notations
Software tool support include Microsoft Visio for Enterprise
Architects, CaseTalk, Infagon and NORMA
27
Database Models and the Internet
Internet drastically changed role and scope of
database market
Growing need to manage unstructured
information
The data found in today’s:
Online documents
Web pages
Most modern DBMS incorporate Internet-age
technologies such as Extended Markup
Language (XML) support
28
Data Models: Summary
Each new data model capitalized on the
shortcomings of previous models
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 comply with consistency and
integrity characteristics of any data model
29
Data Models: Summary
30
Degrees of Data Abstraction
Way of classifying data models
Many processes begin at high level of
abstraction
Proceed to an ever-increasing level of
detail
Designing a usable database follows the
same basic process
31
Degrees of Data Abstraction
American National
Standards Institute (ANSI)
Standards Planning and
Requirements Committee
(SPARC)
Developed standards 1970
Framework for data
modeling based on degrees
of data abstraction:
External
Conceptual
Internal
Physical
32
The External Model
34
The Conceptual Model (1 of 2)
36
The Internal Model
38
Degrees of Data Abstraction - Summary
39
Fin…
40