SlideShare a Scribd company logo
DATA MODELS AND
THREE SCHEMA ARCHITECTURE OF
            DBMS
Data Models
• Data Model: A set of concepts to describe the
  structure of a database, and certain constraints that
  the database should obey.
• Data Model Operations: Operations for specifying
  database retrievals and updates by referring to the
  concepts of the data model. Operations on the data
  model may include basic operations and user-defined
  operations.



Slide 2-2
Categories of data models
• Conceptual (high-level, semantic) data models:
  Provide concepts that are close to the way many
  users perceive data. (Also called entity-based or
  object-based data models.)
• Physical (low-level, internal) data models: Provide
  concepts that describe details of how data is stored
  in the computer.
• Implementation (representational) data models:
  Provide concepts that fall between the above two,
  balancing user views with some computer storage
  details.
   (Schema – a description of data in terms of a data
  model )

Slide 2-3
Data Models




Slide 2-4
Three-Schema Architecture
• Proposed to support DBMS characteristics of:
       • Program-data independence.
       • Support of multiple views of the data.



       – Schema – a description of data in terms of a data
         model



Slide 2-5
Three-Schema Architecture
• Defines DBMS schemas at three levels:
       • Internal schema at the internal level to describe physical
         storage structures and access paths. Typically uses a
         physical data model.
       • Conceptual schema at the conceptual level to describe the
         structure and constraints for the whole database for a
         community of users. Uses a conceptual or an
         implementation data model.
       • External schemas at the external level to describe the
         various user views. Usually uses the same data model as
         the conceptual level.


Slide 2-6
Levels of Abstraction in a DBMS

External Schema 1   External Schema 2   External Schema 3



                       Conceptual
                        (logical)
                        Schema



                         Physical
                         Schema



                       Secondary
                        Storage                        7
Physical Schema
• Storage space allocation for data and indexes
• Record description for storage (sizes for data
  items)
• Record placement
• Data compression and data encryption
  techniques



                    M.G. Erechtchoukova            8
Conceptual (Logical) Schema

Example:
Book (bid: char(2), title: char(50), author: char(20), price:
  decimal(5,2), av_q: integer)
Customer (cid: char(2), l_n: char(25), f_n: char(25), a_c:
  char(30), phone: char(10))
Order (i_n: char(2), bid: char(2), cid: char(2), n_i: integer,
  d_of_sale: date)




                          M.G. Erechtchoukova                    9
External Schema

• Multiple external schemas
• In relational DBMS, External Schema
  contains views and relations from
  conceptual schema
• Reduce complexity of DBMS for users
• Support data security
• Support data independence

                M.G. Erechtchoukova     10
Data Independence
When a schema at a lower level is changed, only
 the mappings between this schema and
 higher-level schemas need to be changed in a
 DBMS that fully supports data independence.
 The higher-level schemas themselves are
 unchanged. Hence, the application programs
 need not be changed since they refer to the
 external schemas.

Slide 2-11
Data Independence

External Schema 1       External Schema 2      External Schema 3

  Logical data                              independence
                           Conceptual
                            Schema


   Physical data                             independence
                             Physical
                             Schema




                           Secondary
                            Storage                           12
Data Independence (cont…)
• Logical data independence – the immunity of
  the external schemas to changes in the
  conceptual schema
• Physical data independence – the immunity
  of the conceptual schema to changes in the
  physical schema



                   M.G. Erechtchoukova          13

More Related Content

PPT
L7 data model and dbms architecture
PPT
Chapter 2 database architecture
PPT
Week 3 Classification of Database Management Systems & Data Modeling
PDF
DBMS & Data Models - In Introduction
PPTX
Dbms classification according to data models
PPT
Mca ii-dbms- u-ii-the relational database model
PPTX
Database Models, Client-Server Architecture, Distributed Database and Classif...
PPTX
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...
L7 data model and dbms architecture
Chapter 2 database architecture
Week 3 Classification of Database Management Systems & Data Modeling
DBMS & Data Models - In Introduction
Dbms classification according to data models
Mca ii-dbms- u-ii-the relational database model
Database Models, Client-Server Architecture, Distributed Database and Classif...
Kskv kutch university DBMS unit 1 basic concepts, data,information,database,...

What's hot (20)

PPTX
DBMS and its Models
PPTX
Data Models In Database Management System
PDF
Dbms 3: 3 Schema Architecture
PDF
Data models
PPTX
3 Level Architecture
PPT
Data independence
PDF
1 introduction databases and database users
PPT
Database concepts
PPT
Database Management System Introduction
PDF
Introduction to Database Management System
PPT
Ansi spark
PPTX
RDBMS.ppt
PPT
Unit01 dbms
PPTX
Database abstraction
PPTX
Database Management System
PDF
Introduction to RDBMS
PPTX
Basic Concept of Database
DBMS and its Models
Data Models In Database Management System
Dbms 3: 3 Schema Architecture
Data models
3 Level Architecture
Data independence
1 introduction databases and database users
Database concepts
Database Management System Introduction
Introduction to Database Management System
Ansi spark
RDBMS.ppt
Unit01 dbms
Database abstraction
Database Management System
Introduction to RDBMS
Basic Concept of Database
Ad

Viewers also liked (20)

PPTX
Adjustment of inheritance
PPTX
Dbms architecture
PPT
Dbms models
PPTX
Database Basics
PDF
Chapter3 the relational data model and the relation database constraints part2
PPT
Database Concept by Luke Lonergan
PPTX
Database management system
PPT
Mba it unit 3 ppt
PDF
2 database system concepts and architecture
PPT
Chapter02
PDF
PPT
Introduction to Database Concepts
PPT
Mba it unit 3 ppt
PPTX
Database management system basic, database, database management, learn databa...
PPT
Bsc cs ii-dbms- u-ii-database system concepts and architecture
PPTX
Database Management Systems - Management Information System
PPTX
All data models in dbms
PPTX
Dbms and sqlpptx
PPT
Fundamentals of Database system
Adjustment of inheritance
Dbms architecture
Dbms models
Database Basics
Chapter3 the relational data model and the relation database constraints part2
Database Concept by Luke Lonergan
Database management system
Mba it unit 3 ppt
2 database system concepts and architecture
Chapter02
Introduction to Database Concepts
Mba it unit 3 ppt
Database management system basic, database, database management, learn databa...
Bsc cs ii-dbms- u-ii-database system concepts and architecture
Database Management Systems - Management Information System
All data models in dbms
Dbms and sqlpptx
Fundamentals of Database system
Ad

Similar to Datamodels & architecture (20)

PDF
Database Development Strategies
PDF
Dbms module i
PDF
Database environment
PPT
Database system
PPT
Database system
PDF
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
PPS
Database system
PPS
Database system-DBMS
PPT
PPT5_DataBaseManagement Systems_Three Schema Architecture.ppt
PPT
Database Management Systems.ppt
PPT
Unit 01 dbms
PPTX
DBMS lectu good quality 1 BSIT(6TH).pptx
PPT
Data abs ind & mod
PDF
BCS403_dyeuhfgidgujoiduhyopyirhyiuertfuiPPT.pdf
PPTX
Unit 1.2.pptx
PPT
Chapter 2 dbChapter 2 dbChapter 2 dbChapter 2 db.ppt
PPT
Unit01 dbms 2
PDF
CBSE XII Database Concepts And MySQL Presentation
PPTX
01-database-management.pptx
PPT
Top schools in gudgaon
Database Development Strategies
Dbms module i
Database environment
Database system
Database system
Chapter 2.pdfChapter 2.pdfChapter 2.pdfChapter 2.pdf
Database system
Database system-DBMS
PPT5_DataBaseManagement Systems_Three Schema Architecture.ppt
Database Management Systems.ppt
Unit 01 dbms
DBMS lectu good quality 1 BSIT(6TH).pptx
Data abs ind & mod
BCS403_dyeuhfgidgujoiduhyopyirhyiuertfuiPPT.pdf
Unit 1.2.pptx
Chapter 2 dbChapter 2 dbChapter 2 dbChapter 2 db.ppt
Unit01 dbms 2
CBSE XII Database Concepts And MySQL Presentation
01-database-management.pptx
Top schools in gudgaon

Recently uploaded (20)

PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Modernizing your data center with Dell and AMD
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Network Security Unit 5.pdf for BCA BBA.
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Empathic Computing: Creating Shared Understanding
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Encapsulation theory and applications.pdf
Chapter 3 Spatial Domain Image Processing.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
“AI and Expert System Decision Support & Business Intelligence Systems”
Modernizing your data center with Dell and AMD
Diabetes mellitus diagnosis method based random forest with bat algorithm
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Encapsulation_ Review paper, used for researhc scholars
Network Security Unit 5.pdf for BCA BBA.
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Empathic Computing: Creating Shared Understanding
The Rise and Fall of 3GPP – Time for a Sabbatical?
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Advanced methodologies resolving dimensionality complications for autism neur...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Encapsulation theory and applications.pdf

Datamodels & architecture

  • 1. DATA MODELS AND THREE SCHEMA ARCHITECTURE OF DBMS
  • 2. Data Models • Data Model: A set of concepts to describe the structure of a database, and certain constraints that the database should obey. • Data Model Operations: Operations for specifying database retrievals and updates by referring to the concepts of the data model. Operations on the data model may include basic operations and user-defined operations. Slide 2-2
  • 3. Categories of data models • Conceptual (high-level, semantic) data models: Provide concepts that are close to the way many users perceive data. (Also called entity-based or object-based data models.) • Physical (low-level, internal) data models: Provide concepts that describe details of how data is stored in the computer. • Implementation (representational) data models: Provide concepts that fall between the above two, balancing user views with some computer storage details. (Schema – a description of data in terms of a data model ) Slide 2-3
  • 5. Three-Schema Architecture • Proposed to support DBMS characteristics of: • Program-data independence. • Support of multiple views of the data. – Schema – a description of data in terms of a data model Slide 2-5
  • 6. Three-Schema Architecture • Defines DBMS schemas at three levels: • Internal schema at the internal level to describe physical storage structures and access paths. Typically uses a physical data model. • Conceptual schema at the conceptual level to describe the structure and constraints for the whole database for a community of users. Uses a conceptual or an implementation data model. • External schemas at the external level to describe the various user views. Usually uses the same data model as the conceptual level. Slide 2-6
  • 7. Levels of Abstraction in a DBMS External Schema 1 External Schema 2 External Schema 3 Conceptual (logical) Schema Physical Schema Secondary Storage 7
  • 8. Physical Schema • Storage space allocation for data and indexes • Record description for storage (sizes for data items) • Record placement • Data compression and data encryption techniques M.G. Erechtchoukova 8
  • 9. Conceptual (Logical) Schema Example: Book (bid: char(2), title: char(50), author: char(20), price: decimal(5,2), av_q: integer) Customer (cid: char(2), l_n: char(25), f_n: char(25), a_c: char(30), phone: char(10)) Order (i_n: char(2), bid: char(2), cid: char(2), n_i: integer, d_of_sale: date) M.G. Erechtchoukova 9
  • 10. External Schema • Multiple external schemas • In relational DBMS, External Schema contains views and relations from conceptual schema • Reduce complexity of DBMS for users • Support data security • Support data independence M.G. Erechtchoukova 10
  • 11. Data Independence When a schema at a lower level is changed, only the mappings between this schema and higher-level schemas need to be changed in a DBMS that fully supports data independence. The higher-level schemas themselves are unchanged. Hence, the application programs need not be changed since they refer to the external schemas. Slide 2-11
  • 12. Data Independence External Schema 1 External Schema 2 External Schema 3 Logical data independence Conceptual Schema Physical data independence Physical Schema Secondary Storage 12
  • 13. Data Independence (cont…) • Logical data independence – the immunity of the external schemas to changes in the conceptual schema • Physical data independence – the immunity of the conceptual schema to changes in the physical schema M.G. Erechtchoukova 13