Professional Documents
Culture Documents
Data Models - Final
Data Models - Final
Objectives
Define Data Models
Why data models are important
About the basic data-modeling building
blocks
How the major data models evolved
How data models can be classified
2
Data Model
A Model is a representation of reality, ’real world’
objects and events and their associations.
3
The Importance of Data Models
Relatively simple representations, usually
graphical, of complex real-world data structures.
Facilitate interaction among the designer, the
applications programmer, and the end user.
4
Data Model Basic Building Blocks
Entity - anything about which data are to be collected and
stored
5
Business Rules
Describecharacteristics of the data as viewed by
the company.
6
The Evolution of Data Models
7
The Hierarchical Model
Developed in the 1960s to manage large
amounts of data for complex
manufacturing projects.
8
The Hierarchical Model (continued)
9
The Hierarchical Model (continued)
The hierarchical structure contains levels,
or segments
10
The Hierarchical Model (continued)
Advantages
◦ Simplicity
◦ Security
◦ Efficiency
◦ Many of the hierarchical data model’s features formed
the foundation for current data models
◦ Its database application advantages are replicated in a
different form, in current database environments
11
The Hierarchical Model (continued)
Disadvantages
◦ Difficult to manage
◦ Lacks structural independence
◦ Implementation limitations
◦ Poor Portability
◦ Complexity of Programming
12
13
Set Structure
14
The Network Model (continued)
Advantages
Conceptual simplicity
Resembles hierarchical model
Represent complex data relationships more
effectively
Improve database performance
15
The Network Model
Disadvantages
System complexity
Operational Anomalies
16
The Relational Model
Relational Database Management System
(RDBMS)
17
The Relational Model (continued)
18
The Relational Model (continued)
19
The Relational Model (continued)
Table (relations)
◦ Matrix consisting of a series of row/column
intersections
Relational diagram
◦ Representation of relational database’s entities,
attributes within those entities, and relationships
between those entities
20
The Relational Model (continued)
Relational Table
◦ Stores a collection of related entities
21
The Relational Model (continued)
DML
◦ Syntax or Code used for inserting , deleting or
manipulating the records in database.
22
The Relational Model (continued)
Structured Query Language (SQL) allows the user
to specify what must be done without specifying
how it must be done
23
The Relational Model
Advantages :
Information as tables consisting of rows and columns is
much easier to understand.
Simple to navigate
24
The Relational Model
Disadvantages :
25
The Entity Relationship Model
Widely accepted and adapted graphical
tool for data modeling.
26
The Entity Relationship Model
27
The Entity Relationship Model
(continued)
Entity relationship diagram (ERD)
◦ Uses graphic representations to model database
components
28
The Entity Relationship Model
29
The Entity Relationship Model
Advantages
Conceptually simple
Better visual representation
Effective Communication Tool
Converting ER Diagrams to tables is very
simple.
Easy conversion to any Data Model
30
Entity Relationship Model
Disadvantages
Limited Constraints and Specifications
Limited Relationship Representation
No industry standard for notation
No representation of data manipulation
31
The Object Oriented Model
Object is an abstraction of a real-world entity.
32
The Object Oriented Model
(continued)
33
The Object Oriented Model
(continued)
Object becomes basic building block for
structures
34
Object Oriented Model
Advantages
Is a more natural and realistic representation of
real-world objects.
Reusability of Classes
Capable of handling a large variety of data types
(eg – pictures , video etc.)
Support for long duration transactions
Improved Performance
35
Object Oriented Models
Disadvantages
Lack of universal data model
Limited use
Lack of standards
Lack of support for views
Complex
Lack of Security
36
Question
What is client server data model?
37