SlideShare a Scribd company logo
1 of 26
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
1
DATA MODELS
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
2
TYPES OF DATA
MODELS
Hierarchical Model
Network Model
Relational Model
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
3
HIERARCHICAL MODEL
• This model is developed by IBM and North American
Rockwell Known as Information Management System.
• This is the oldest and simplest DBMS model.
• The model is sorted hierarchical ,either in top down or
bottom up approach of designing.
• This model uses pointers to navigate between stored
data.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
4
EXAMPLE OF
HIERARCHICAL MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
5
BUSINESS RULE
• One parent node can have many child nodes ,but
one child cannot have more than one parent.
• Relationship is one to many.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
6
ADVANTAGES OF
HIERARCHICAL MODEL
Conceptual
Relationship between various level
is logically very simple. Hence
database structure becomes easier
to view.
Database Security
Security is given by DBMS system
itself.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
7
• Simple creation ,Updation and Access
• This model is simple to construct with help of pointers .
• Easy to understand .
• Easy to delete and add records in the database using pointers .
• This is faster and easy data retrival through higher level records in
tree structure.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
8
• 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
9
• 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
10
DISADVANTAGES OF
HIERARCHICAL MODEL
Complex
Programmers and designers need
to have knowledge of physical
data storage which may be
complex.
Difficult to manage
Any change in a location of data
needs change in all application
programs that accesses changes
data.
Data access is restricted by pointer
path.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
11
• 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
12
NETWORK 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
13
• A relationship between any two record types is called as
a set.
• Data in network model are represented by
collectionof records and relationships among data are
represented by links, which can be viewed as pointers.
• The records in the database are organized as
collection of arbitrary groups.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
14
EXAMPLE OF NETWORK
MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
15
ADVANTAGES OF
NETWORK MODEL
Simple design
The network model is simple and easy to
design and understand.
Ability to handle many types
relationship
The network model can handle the one
to many or many to many or other
relationships.
Hence network model manages
multiuser environment.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
16
• In a network model, an application can
access a root(parent) record and all the
member records within a SET (child).
• Provide very efficient and high speed
• retrieval.
Ease of
data
access
• In a network model, no member can exist
• without a parent entity.
• A user must first define the root record
and
• then the child record.
Data
Integrity
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
17
• 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
18
DISADVANTAGES OF NETWORK MODEL
System Complexity
In a network model ,data are accessed one
record at a time.
This can increase the complexity of system
for accessing multiple records at a time.
Lack of structural
Any changes made to the database
structure require the application programs
to be modified before it can access data.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
19
RELATIONAL MODEL
• The Relational Model is first proposed by E.F
Codd.
• This model uses collection of tables to represent relationships
amongst the data.
• In this model ,each database item is viewed as a record with
attributes. A set of records with similar attributes is called a
TABLE. Each table contains a record of a particular type.
• The database uses Relational model called as
RDBMS .
• A Relational database is a collection of 2-D tables
which consist of rows and columns.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
20
• Relational model is the most popular model and the
most extensively used model.
• In this model the data can be stored in the “tables” and this
storing is called as “relation”, the relations can be normalized
and the normalized relation values are called atomic values.
• Each row in a relation contains unique value and it is called as
“tuple”, each column contains value from same domain and it
is called as “attribute”.
• Most of the popular commercial DBMS products like Oracle,
Sybase , MySQL, are based on relational model.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
21
• A particular attribute or combination of attributes is chosen as a
primary key that can be referred to in other tables, when it’s called
a foreign key.
• The model also accounts for the types of relationships between
those tables, including one-to-one, one-to-many, and many-to-
many relationships.
• Within the database, tables can be normalized that make the
database flexible, adaptable, and scalable. When normalized, each
piece of data is atomic, or broken into the smallest useful pieces.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
22
EXAMPLE OF RELATIONAL MODEL
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
23
ADVANTAGES OF RELATIONAL MODEL
1. Relational Algebra
• A relational database supports relational
algebra and also relational operations of the
set theory like union , intersection
,difference , cartisen product , relational
database also support select , project ,
join and division operations.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
24
• 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
25
4. Excellent data security
• Relational databases support the concept of
user rights, every user is assigned with some
database permission called as user rights.
• Relational databases are scalable and provide
good support for the implementation of
distributed systems and other advanced
database systems.
SRCW-Commerce-M.Com(CA)-DBMS-Data
Models
26

More Related Content

Similar to Data Models.pptx

Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Tushar Wagh
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxKavya990096
 
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxChapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxmicayaseloisa
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database ModelsMurassa Gillani
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxRiannel Tecson
 
Database management system
Database management systemDatabase management system
Database management systemAmit Sarkar
 
Relational Database explanation with detail.pdf
Relational Database explanation with detail.pdfRelational Database explanation with detail.pdf
Relational Database explanation with detail.pdf9wldv5h8n
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationGuru Ji
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptxAshmitKashyap1
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxSoniaDevi15
 
DBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxDBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxAmitSingh770691
 
Types of data bases
Types of data basesTypes of data bases
Types of data basesJanu Jahnavi
 

Similar to Data Models.pptx (20)

Complete first chapter rdbm 17332
Complete first chapter rdbm 17332Complete first chapter rdbm 17332
Complete first chapter rdbm 17332
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
DIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptxDIFFERENT MODELS IN DBMS.pptx
DIFFERENT MODELS IN DBMS.pptx
 
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptxChapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
Chapter-3-Lesson 1 DM/ Data-Models.ppt/pptx
 
Types of Database Models
Types of Database ModelsTypes of Database Models
Types of Database Models
 
DBMS
DBMSDBMS
DBMS
 
Week 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptxWeek 1 and 2 Getting started with DBMS.pptx
Week 1 and 2 Getting started with DBMS.pptx
 
Database management system
Database management systemDatabase management system
Database management system
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
Relational Database explanation with detail.pdf
Relational Database explanation with detail.pdfRelational Database explanation with detail.pdf
Relational Database explanation with detail.pdf
 
CBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL PresentationCBSE XII Database Concepts And MySQL Presentation
CBSE XII Database Concepts And MySQL Presentation
 
Dbms new manual
Dbms new manualDbms new manual
Dbms new manual
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
Unit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptxUnit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptx
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 
Module 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptxModule 1 - Chapter 2.pptx
Module 1 - Chapter 2.pptx
 
DBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptxDBMS(Network_Data_Model).pptx
DBMS(Network_Data_Model).pptx
 
DBMS
DBMS DBMS
DBMS
 
Types of data bases
Types of data basesTypes of data bases
Types of data bases
 

Recently uploaded

Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFxolyaivanovalion
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceDelhi Call girls
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...amitlee9823
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...amitlee9823
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangaloreamitlee9823
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Researchmichael115558
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...amitlee9823
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...SUHANI PANDEY
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxolyaivanovalion
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz1
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...amitlee9823
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxolyaivanovalion
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxolyaivanovalion
 

Recently uploaded (20)

Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Indiranagar Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Halmar dropshipping via API with DroFx
Halmar  dropshipping  via API with DroFxHalmar  dropshipping  via API with DroFx
Halmar dropshipping via API with DroFx
 
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort ServiceBDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
BDSM⚡Call Girls in Mandawali Delhi >༒8448380779 Escort Service
 
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
Mg Road Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Banga...
 
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
Escorts Service Kumaraswamy Layout ☎ 7737669865☎ Book Your One night Stand (B...
 
Anomaly detection and data imputation within time series
Anomaly detection and data imputation within time seriesAnomaly detection and data imputation within time series
Anomaly detection and data imputation within time series
 
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service BangaloreCall Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
Call Girls Begur Just Call 👗 7737669865 👗 Top Class Call Girl Service Bangalore
 
Discover Why Less is More in B2B Research
Discover Why Less is More in B2B ResearchDiscover Why Less is More in B2B Research
Discover Why Less is More in B2B Research
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
Vip Mumbai Call Girls Thane West Call On 9920725232 With Body to body massage...
 
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
VIP Model Call Girls Hinjewadi ( Pune ) Call ON 8005736733 Starting From 5K t...
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Mature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptxMature dropshipping via API with DroFx.pptx
Mature dropshipping via API with DroFx.pptx
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Invezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signalsInvezz.com - Grow your wealth with trading signals
Invezz.com - Grow your wealth with trading signals
 
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
Call Girls Bommasandra Just Call 👗 7737669865 👗 Top Class Call Girl Service B...
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Edukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFxEdukaciniai dropshipping via API with DroFx
Edukaciniai dropshipping via API with DroFx
 
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bellandur ☎ 7737669865 🥵 Book Your One night Stand
 
Midocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFxMidocean dropshipping via API with DroFx
Midocean dropshipping via API with DroFx
 

Data Models.pptx

  • 2. DATA MODELS 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 2
  • 3. TYPES OF DATA MODELS Hierarchical Model Network Model Relational Model SRCW-Commerce-M.Com(CA)-DBMS-Data Models 3
  • 4. HIERARCHICAL MODEL • This model is developed by IBM and North American Rockwell Known as Information Management System. • This is the oldest and simplest DBMS model. • The model is sorted hierarchical ,either in top down or bottom up approach of designing. • This model uses pointers to navigate between stored data. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 4
  • 6. BUSINESS RULE • One parent node can have many child nodes ,but one child cannot have more than one parent. • Relationship is one to many. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 6
  • 7. ADVANTAGES OF HIERARCHICAL MODEL Conceptual Relationship between various level is logically very simple. Hence database structure becomes easier to view. Database Security Security is given by DBMS system itself. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 7
  • 8. • Simple creation ,Updation and Access • This model is simple to construct with help of pointers . • Easy to understand . • Easy to delete and add records in the database using pointers . • This is faster and easy data retrival through higher level records in tree structure. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 8
  • 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 9
  • 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 10
  • 11. DISADVANTAGES OF HIERARCHICAL MODEL Complex Programmers and designers need to have knowledge of physical data storage which may be complex. Difficult to manage Any change in a location of data needs change in all application programs that accesses changes data. Data access is restricted by pointer path. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 11
  • 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 12
  • 13. NETWORK 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 13
  • 14. • A relationship between any two record types is called as a set. • Data in network model are represented by collectionof records and relationships among data are represented by links, which can be viewed as pointers. • The records in the database are organized as collection of arbitrary groups. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 14
  • 16. ADVANTAGES OF NETWORK MODEL Simple design The network model is simple and easy to design and understand. Ability to handle many types relationship The network model can handle the one to many or many to many or other relationships. Hence network model manages multiuser environment. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 16
  • 17. • In a network model, an application can access a root(parent) record and all the member records within a SET (child). • Provide very efficient and high speed • retrieval. Ease of data access • In a network model, no member can exist • without a parent entity. • A user must first define the root record and • then the child record. Data Integrity SRCW-Commerce-M.Com(CA)-DBMS-Data Models 17
  • 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 18
  • 19. DISADVANTAGES OF NETWORK MODEL System Complexity In a network model ,data are accessed one record at a time. This can increase the complexity of system for accessing multiple records at a time. Lack of structural Any changes made to the database structure require the application programs to be modified before it can access data. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 19
  • 20. RELATIONAL MODEL • The Relational Model is first proposed by E.F Codd. • This model uses collection of tables to represent relationships amongst the data. • In this model ,each database item is viewed as a record with attributes. A set of records with similar attributes is called a TABLE. Each table contains a record of a particular type. • The database uses Relational model called as RDBMS . • A Relational database is a collection of 2-D tables which consist of rows and columns. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 20
  • 21. • Relational model is the most popular model and the most extensively used model. • In this model the data can be stored in the “tables” and this storing is called as “relation”, the relations can be normalized and the normalized relation values are called atomic values. • Each row in a relation contains unique value and it is called as “tuple”, each column contains value from same domain and it is called as “attribute”. • Most of the popular commercial DBMS products like Oracle, Sybase , MySQL, are based on relational model. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 21
  • 22. • A particular attribute or combination of attributes is chosen as a primary key that can be referred to in other tables, when it’s called a foreign key. • The model also accounts for the types of relationships between those tables, including one-to-one, one-to-many, and many-to- many relationships. • Within the database, tables can be normalized that make the database flexible, adaptable, and scalable. When normalized, each piece of data is atomic, or broken into the smallest useful pieces. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 22
  • 23. EXAMPLE OF RELATIONAL MODEL SRCW-Commerce-M.Com(CA)-DBMS-Data Models 23
  • 24. ADVANTAGES OF RELATIONAL MODEL 1. Relational Algebra • A relational database supports relational algebra and also relational operations of the set theory like union , intersection ,difference , cartisen product , relational database also support select , project , join and division operations. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 24
  • 25. • 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 25
  • 26. 4. Excellent data security • Relational databases support the concept of user rights, every user is assigned with some database permission called as user rights. • Relational databases are scalable and provide good support for the implementation of distributed systems and other advanced database systems. SRCW-Commerce-M.Com(CA)-DBMS-Data Models 26