Professional Documents
Culture Documents
Data Models
Data Models
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
DATA MODELS 2
INTRODUCTION
• A Data Model is a set of concepts that can be used
to describe the structure of data in a database.
• A database model shows the logical structure of a
database, including the relationships and constraints
that determine how data can be stored and
accessed.
• Data Models are used to support the development of
information systems by providing the definition and
format of data to be involved in future systems.
• Data model also gives idea about possible
alternatives
to achieve targeted solution.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
3
Hierarchical Model
Relational Model
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
4
HIERARCHICAL MODEL
HIERARCHICAL MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
6
BUSINESS RULE
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
ADVANTAGES OF
7
HIERARCHICAL MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
8
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
9
• Database Integrity
• There is parent child association
between different levels of records in
files.
• Child record is attached with the parent
record which maintains the integrity
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
10
• Efficiency
• This model having good performance when database
contains large amount of data in which one record has
many related records like a class contains many students
studying in it.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
DISADVANTAGES OF
11
HIERARCHICAL MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
12
• Limitations in implementation
• It is difficult to implement many to many
relationship.
• Query optimization is not possible or
possible up to certain extent.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
NETWORK 13
MODEL
• This model is similar to Hierarchical
model, this model also uses pointers
toward data but there is no need of
parent to child association .
• It uses graph data structure.
• A child can have more than one
parent.
• It has one to many or many to many
relationship. SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
14
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
EXAMPLE OF NETWORK 15
MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
ADVANTAGES OF 16
NETWORK MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
17
access • retrieval.
Data •
•
In a network model, no member can exist
without a parent entity.
Integrity
• A user must first define the root record and
• then the child record.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
18
• Data Independence
• In network model, application
programs work independently of the
data.
• Any changes made in the data do not
affect the application programs.
• In a network model ,administrators
offer data creation by DDL and DML.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
19
In a network model ,data are accessed one record Any changes made to the database structure
at a time. require the application programs to be modified
This can increase the complexity of system for before it can access data.
accessing multiple records at a time.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
RELATIONAL MODEL
20
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
21
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
22
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
23
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
24
1. Relational Algebra
• Dynamic Views
• In a RDBMS , a view is not a part of the physical schema , it is
always dynamic.
• Structured query language (SQL)
• For data access in RDBMS we have query language SQL .Most of the
database vendors support the SQL standards.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
26
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models