01-Data Modeling Intro - v2
01-Data Modeling Intro - v2
Can be Can
thrown occupy
away less space
Professional Can be a
Is a poor
handling not reasonable
substitute
required substitute
Discussion – Examples
• Analysis Models
– Example: Data Flow Diagrams
• Design Models
– Example: Structure Charts, State Diagrams
• Execution Models
– Call graphs, coverage analysis,
performance charts
• Infrastructure Models
– Example: Network diagrams
Modeling Summary
AsiaPac Chennai
2574 A12
Chennai
2574 Bangalore
7 EMEA jdoe Software Engineer
36 He11o! John Doe we1c0me!
A17
Dane Doe Bangalore
3 42
janedoe
Data Modeling Example
EMPLOYEE
ID Name Age Office Home Grade Domain Userid Password
2574 John Doe 36 35 Cochin A12 Asia jdoe He11o!
1364 Dane Doe 42 21 Chennai A17 EMEA ddoe We1c0me!
Database
Abstraction
Design
Database
Data Model
Schema
Mapping
Key Data Modeling Concepts
• Data Model is a
collection of concepts
(notations,
terminology, etc.) that
Data Model help model data
Key Data Modeling Concepts
• The key idea behind
data modeling is to
avoid dealing with
data directly as much
as possible
Abstraction • This is achieved by
choosing relevant
terminology and
notation depending
upon the data model
Key Data Modeling Concepts
• Structural description
of data created using
the notations and
concepts defined in a
Schema particular data model
– Example: A relational
schema uses the
notations and concepts
of the relational data
model
Note: The terms Schema and Data Model are often used interchangeably
as in “The ER Model for this application is given below…”
Key Data Modeling Concepts
• Database design is
realized using a
schema
Database • Schema is only one
Design but a very significant
component of
database design
Key Data Modeling Concepts
• Database is the
repository that stores
data
Database • The structure of the
repository conforms
with a particular
database design
Key Data Modeling Concepts
• Mapping means
transforming a schema
defined using one
model into a schema
Mapping
defined using another
model
– Example: Mapping
between an ER schema
and a relational schema
A simplified meta-model
organizes
Database
Elements of Data Models - 1
• Define the terminology and semantics for
structuring entities, attributes and related
meta-data
– E.g., “Relation”, “Attribute”, “Primary Key”,
“Foreign Key”, etc.
• Define the mechanism for manipulating
the data using the data model
– Data Definition Language (DDL)
– Data Manipulation Language (DML)
• Define a set of rules for mapping from one
model to another (e.g., ER to relational)
Elements of Data Models - 2
External Schema
Logical Schema
Physical Schema
Contextual Contextual
Conceptual Conceptual
Logical Logical
Physical Physical
As Built As Built
Functioning Functioning