SlideShare a Scribd company logo
 The Three-level Architecture
I. External model
II. Logical or conceptual model
III. Internal or physical model
Logical Data Models
I. Semantic data model
II. Record based model
DATABASE ARCHITECTURE
 THE THREE-LEVEL
ARCHITECTURE
 External model
 Logical Or Conceptual Model
 Internal Or Physical Model
THE THREE-LEVEL
ARCHITECTURE
 EXTERNAL LEVEL
• The external level interacts directly with the user (end users or application programs). It
changes the data coming from the conceptual level to a format and view that is familiar to
the users.
• Consists of many user models or views
• Has external records - records seen by users
• May include calculated or virtual data
• Devide in external schemas (sub-schemas)
• Used to create user interface
 LOGICAL OR CONCEPTUAL MODEL
The conceptual level defines the logical view of the data.
• All entities, attributes, relationships represented
• Includes all record types, data item types, relationships, semantic information, security
and integrity information
• Described in logical schema
 INTERNAL LEVEL
• The internal level determines where data is actually stored on the storage devices.
• The DBMS and Operating System View
• Physical implementation level
• Includes data structures, file organizations used by DBMS
• Depends on what DBMS is used
WHAT IS DATA INDEPENDENCE
•Techniques that allow data to be changed without
affecting the applications that process it.
Slide 2- 8
TYPES OF DATA INDEPENDENCE
• Logical Data Independence:
• The capacity to change the conceptual schema without having to change the external
schemas and their associated application programs.
• Physical Data Independence:
• The capacity to change the internal schema without having to change the conceptual
schema.
• For example, the internal schema may be changed when certain file structures are
reorganized or new indexes are created to improve database performance
Chapter 2 DBMS
¤ In this model database is structured in fixed-format
records of several types.
¤ They allow the designer to develop and specify the
logical structure and provide some options for
implementation of the design
¤ It describes the data at the conceptual and view levels
both.
¤ Specify overall logical structure of the database
I. Hierarchical Model
II. Network Model
III. Relational Model
Chapter 2 DBMS
¤ Oldest
¤ Like a structure of a tree
¤ Branches represent fields
¤ Nodes represent record
¤ Structure contains levels, or segments.
¤ Higher layer is perceived as the parent of the segment
directly beneath it, which is called the child
S1001 Ali Ahmad Computer
Science
60
Csc01A Intro to Algo Talha TuF10 N45
S1002 Kamal Khan Computer
Science
60
S1008 Noman Ch Computer
Science
60
Chapter 2 DBMS
¤ Like hierarchical model
¤ But may have many to many relation
¤ It allows a record to have more than one parent
¤ Replaces the hierarchical tree with a graph
S1001 Ali Ahmad Computer
Science
60
Csc01A Intro to
Algo
Talha TuF10 N45
S1002 Kamal Khan Computer
Science
60
S1008 Noman Ch Computer
Science
60
Mth01A Calculus I Mutiullah MW9 R25
:- A student taking two classes
:- A teacher teaches different classes
:- An employee works for two departments
Chapter 2 DBMS
¤ Proposed by E.F. Codd
¤ Uses relations
¤ Contains tables
¤ Tables represent relationships
¤ Columns represent attributes
¤ It’s better than others
STDID STDNAME MAJOR CREDITS
S1001 Ali Ahmad Computer Science 60
S1002 Kamal Khan Math 40
S1003 Shoaib Mansoor Computer Science 60
C_ID CNAME PROF SCHED ROOM
Mth01A Calculus I Mutiullah MW9 R25
Csc01A Intro to Algo Talha TuF10 N45
Csc01B Programming I Imran TuThF9 N40
Student - Table
Enrollment - Table
Class - Table
C_ID STDID Grade
Csc01A S1001 B+
Csc01B S1001 A
Mth01A S1002 B
Csc01A S1002 B

More Related Content

PPTX
Chapter-4 Enhanced ER Model
PDF
Database Programming using SQL
PPTX
Database modeling and security
PDF
Use Case TABLE with Actors & Goals
PDF
4 the relational data model and relational database constraints
PPT
PPT
Special lecture er diagram
PPTX
Denormalization
Chapter-4 Enhanced ER Model
Database Programming using SQL
Database modeling and security
Use Case TABLE with Actors & Goals
4 the relational data model and relational database constraints
Special lecture er diagram
Denormalization

What's hot (20)

PDF
Unit 5- Architectural Design in software engineering
PDF
Fundamentals of Database Systems Questions and Answers
PDF
Database Normalization
PDF
Database design & Normalization (1NF, 2NF, 3NF)
PDF
Unified Modeling Language
PPTX
Normalization in a Database
PPTX
Degree of relationship set
PPTX
07.03 cartesian product
PDF
Relational database- Fundamentals
PPTX
Relational model
DOCX
Database development life cycle
PPTX
NORMALIZACIÓN
PPT
Database management systems cs403 power point slides lecture 06
PPT
Fundamentals of Database ppt ch02
PPT
Files Vs DataBase
PPTX
Database systems - Chapter 2
PDF
Documenting Software Architectures
PDF
Chapter – 4 Normalization and Relational Algebra.pdf
PPTX
Chapter 9
PPTX
Database abstraction
Unit 5- Architectural Design in software engineering
Fundamentals of Database Systems Questions and Answers
Database Normalization
Database design & Normalization (1NF, 2NF, 3NF)
Unified Modeling Language
Normalization in a Database
Degree of relationship set
07.03 cartesian product
Relational database- Fundamentals
Relational model
Database development life cycle
NORMALIZACIÓN
Database management systems cs403 power point slides lecture 06
Fundamentals of Database ppt ch02
Files Vs DataBase
Database systems - Chapter 2
Documenting Software Architectures
Chapter – 4 Normalization and Relational Algebra.pdf
Chapter 9
Database abstraction
Ad

Similar to Chapter 2 DBMS (20)

PPTX
CS3270 - DATABASE SYSTEM - Lecture (2)
PDF
Chapter 02.pdf databse schema architecture
PPT
Ch1_Intro-95(1).ppt
PDF
PPT
Database Management Systems.ppt
PPTX
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
PDF
Cs8492 Database Management System 20182019 Department Of Csr It
PPTX
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
PPTX
01-database-management.pptx
PPTX
Unit 1 dbms
PPTX
DBMS-Unit-1.pptx
PPT
Data abs ind & mod
PPTX
Basics171 slides Sql fundamentals slides
PPTX
DatabaseManagementSystem.pptx
PPTX
Unit 2 DATABASE ESSENTIALS.pptx
PPTX
Module 1 - Chapter 2.pptx
PPT
Lecture-8-The-GIS-Database-Part-1.ppt
PPTX
An Introduction To Software Development - Architecture & Detailed Design
PPTX
2nd chapter dbms.pptx
PDF
Introduction to DBMS and SQL Overview
CS3270 - DATABASE SYSTEM - Lecture (2)
Chapter 02.pdf databse schema architecture
Ch1_Intro-95(1).ppt
Database Management Systems.ppt
1st Unit Rdjjkkijhghhjjiikjhttttyybms.pptx
Cs8492 Database Management System 20182019 Department Of Csr It
RELATIONAL MODEL OF DATABASES AND OTHER CONCEPTS OF DATABASES​
01-database-management.pptx
Unit 1 dbms
DBMS-Unit-1.pptx
Data abs ind & mod
Basics171 slides Sql fundamentals slides
DatabaseManagementSystem.pptx
Unit 2 DATABASE ESSENTIALS.pptx
Module 1 - Chapter 2.pptx
Lecture-8-The-GIS-Database-Part-1.ppt
An Introduction To Software Development - Architecture & Detailed Design
2nd chapter dbms.pptx
Introduction to DBMS and SQL Overview
Ad

Recently uploaded (20)

PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
System and Network Administraation Chapter 3
PPTX
Operating system designcfffgfgggggggvggggggggg
PPTX
ISO 45001 Occupational Health and Safety Management System
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PPTX
Transform Your Business with a Software ERP System
PPTX
Online Work Permit System for Fast Permit Processing
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
L1 - Introduction to python Backend.pptx
PPTX
CHAPTER 2 - PM Management and IT Context
PPTX
Introduction to Artificial Intelligence
PPTX
history of c programming in notes for students .pptx
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
Softaken Excel to vCard Converter Software.pdf
PTS Company Brochure 2025 (1).pdf.......
System and Network Administraation Chapter 3
Operating system designcfffgfgggggggvggggggggg
ISO 45001 Occupational Health and Safety Management System
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Transform Your Business with a Software ERP System
Online Work Permit System for Fast Permit Processing
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
Design an Analysis of Algorithms I-SECS-1021-03
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
L1 - Introduction to python Backend.pptx
CHAPTER 2 - PM Management and IT Context
Introduction to Artificial Intelligence
history of c programming in notes for students .pptx
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
How to Choose the Right IT Partner for Your Business in Malaysia

Chapter 2 DBMS

  • 1.  The Three-level Architecture I. External model II. Logical or conceptual model III. Internal or physical model Logical Data Models I. Semantic data model II. Record based model DATABASE ARCHITECTURE
  • 2.  THE THREE-LEVEL ARCHITECTURE  External model  Logical Or Conceptual Model  Internal Or Physical Model
  • 4.  EXTERNAL LEVEL • The external level interacts directly with the user (end users or application programs). It changes the data coming from the conceptual level to a format and view that is familiar to the users. • Consists of many user models or views • Has external records - records seen by users • May include calculated or virtual data • Devide in external schemas (sub-schemas) • Used to create user interface
  • 5.  LOGICAL OR CONCEPTUAL MODEL The conceptual level defines the logical view of the data. • All entities, attributes, relationships represented • Includes all record types, data item types, relationships, semantic information, security and integrity information • Described in logical schema
  • 6.  INTERNAL LEVEL • The internal level determines where data is actually stored on the storage devices. • The DBMS and Operating System View • Physical implementation level • Includes data structures, file organizations used by DBMS • Depends on what DBMS is used
  • 7. WHAT IS DATA INDEPENDENCE •Techniques that allow data to be changed without affecting the applications that process it.
  • 8. Slide 2- 8 TYPES OF DATA INDEPENDENCE • Logical Data Independence: • The capacity to change the conceptual schema without having to change the external schemas and their associated application programs. • Physical Data Independence: • The capacity to change the internal schema without having to change the conceptual schema. • For example, the internal schema may be changed when certain file structures are reorganized or new indexes are created to improve database performance
  • 10. ¤ In this model database is structured in fixed-format records of several types. ¤ They allow the designer to develop and specify the logical structure and provide some options for implementation of the design ¤ It describes the data at the conceptual and view levels both. ¤ Specify overall logical structure of the database
  • 11. I. Hierarchical Model II. Network Model III. Relational Model
  • 13. ¤ Oldest ¤ Like a structure of a tree ¤ Branches represent fields ¤ Nodes represent record ¤ Structure contains levels, or segments. ¤ Higher layer is perceived as the parent of the segment directly beneath it, which is called the child
  • 14. S1001 Ali Ahmad Computer Science 60 Csc01A Intro to Algo Talha TuF10 N45 S1002 Kamal Khan Computer Science 60 S1008 Noman Ch Computer Science 60
  • 16. ¤ Like hierarchical model ¤ But may have many to many relation ¤ It allows a record to have more than one parent ¤ Replaces the hierarchical tree with a graph
  • 17. S1001 Ali Ahmad Computer Science 60 Csc01A Intro to Algo Talha TuF10 N45 S1002 Kamal Khan Computer Science 60 S1008 Noman Ch Computer Science 60 Mth01A Calculus I Mutiullah MW9 R25
  • 18. :- A student taking two classes :- A teacher teaches different classes :- An employee works for two departments
  • 20. ¤ Proposed by E.F. Codd ¤ Uses relations ¤ Contains tables ¤ Tables represent relationships ¤ Columns represent attributes ¤ It’s better than others
  • 21. STDID STDNAME MAJOR CREDITS S1001 Ali Ahmad Computer Science 60 S1002 Kamal Khan Math 40 S1003 Shoaib Mansoor Computer Science 60 C_ID CNAME PROF SCHED ROOM Mth01A Calculus I Mutiullah MW9 R25 Csc01A Intro to Algo Talha TuF10 N45 Csc01B Programming I Imran TuThF9 N40 Student - Table Enrollment - Table Class - Table C_ID STDID Grade Csc01A S1001 B+ Csc01B S1001 A Mth01A S1002 B Csc01A S1002 B