Data Abstraction, Data Model &
Database Language
Fatema tuj Johora
Lecturer,
Department of CSE,DIU
Topic of Discussion
 Data Abstraction
 Instance and Schema
 Data Model
 Data language
Data abstraction
 Data abstraction is hiding the complex data
structure in order to simplify the user’s
interface of the system.
 Data abstraction allow developers to keep
complex data structures away from the users
through levels of abstraction.
 The main purpoes of data abstraction is to
achieve data independence in order to save time
& cost, it also make it easier and safer for users
to access data by hiding complex data structure
and relationship.
Three level of data abstraction or
Three schema Architecture
(external level)
( Conceptual level)
(Internal level)
User
databas
e
View level or external level
 It is the highest level of data abstraction and
exhibits only a part of the whole database.
 It exhibits the data in which the user is
interested.
 The view level can describe many views of the
same data.
Logical level or Conceptual level
 In logical level, the data is stored in the form of
the entity set, entities, their data types, the
relationship among the entity sets, user
operations performed to retrieve or modify the
data and certain constraints on the data.
Physical or Internal level
 The physical or the internal level schema
describes how the data is stored in the
hardware.
 It also describes how the data can be accessed.
 The physical level shows the data abstraction at
the lowest level and it has complex data
structures.
 Only the database administrator operates at this
level.
Instances and Schemas
 Logical Schema – the overall logical structure of the
database
 Example: The database consists of information about
a set of customers and accounts in a bank and the
relationship between them
 Analogous to type information of a variable in a
program
 Physical schema– the overall physical structure of the
database
 Instance – the actual content of the database at a
particular point in time
Data Model
 A Database model defines the logical design and
structure of a database and defines how data will be
stored, accessed and updated in a database
management system.
 Relational model
 Entity-Relationship data model (mainly for database
design)
 Object-based data models (Object-oriented and Object-
relational)
 Semistructured data model (XML)
 Other older models:
 Network model
 Hierarchical model
SQL
 SQL stands for Structured Query Language
 SQL is a standard language for accessing and
manipulating databases.
 SQL commands are instructions. It is used to
communicate with the database.
 SQL can perform various tasks, like- create a
table, add data to tables, drop the table, modify
the table, set permission for users.
Types of SQL Commands
 There are five types of SQL commands:
 DDL (Data Definition Language)
 DML (Data Manipulation Language)
 DCL (Data Control Language)
 TCL (Transection Control Language )
 DQL (Data Query Language)
Types of SQL Commands
DDL
 Examples of DDL commands:
 CREATE – is used to create the database or its objects (like
table, index, function, views, store procedure and triggers).
 DROP – is used to delete objects from the database.
 ALTER- is used to add, delete, or modify columns in an
existing table
 TRUNCATE–is used to remove all records from a table,
including all spaces allocated for the records are removed.
 COMMENT –is used to add comments to the data dictionary.
 RENAME –is used to rename an object existing in the
database.
DML
 Examples of DML:
 INSERT – is used to insert data into a table.
 UPDATE – is used to update existing data within
a table.
 DELETE – is used to delete records from a
database table.
DCL
 Examples of DCL:
 GRAND – It is used to give user access privileges
to a database.
 REVOKE – It is used to take back permissions
from the user.
TCL
 Examples of DCL:
 COMMIT – Commit command is used to save all
the transactions to the database.
 ROLLBACK– Rollback command is used to undo
transactions that have not already been saved to
the database.
 SAVEPOINT– It is used to roll the transaction
back to a certain point without rolling back the
entire transaction.
DQL
 Examples of DCL:
 SEARCH – It is used to select the attribute based
on the condition described by WHERE clause.
Thank you

More Related Content

PPTX
unit 1.pptx
PPTX
unit 1.pptx
PDF
Unit 1 DBMS
PPTX
2nd chapter dbms.pptx
PPTX
DBMS. Advantage of Data base management systems
PPT
Database system concepts
PPT
a presenation on various dtabase languages
PPTX
20CS402_Unit_1.pptx
unit 1.pptx
unit 1.pptx
Unit 1 DBMS
2nd chapter dbms.pptx
DBMS. Advantage of Data base management systems
Database system concepts
a presenation on various dtabase languages
20CS402_Unit_1.pptx

Similar to data abstraction for database management system (20)

PPTX
Bank mangement system
PPT
Basics of Database Management System: Key Components
PDF
Database Concepts & SQL(1).pdf
PDF
Dbms module i
PPTX
Dbms unit i
PPTX
PPT
Database Management Systems.ppt
PDF
database introductoin optimization1-app6891.pdf
PPTX
Introduction to Database
PPTX
database management system anna universityUnit1.pptx
DOCX
Dbms notes
PDF
Database management systems
PDF
23246406 dbms-unit-1
PPTX
PDF
Database Management System NOTES for 2nd year
PPTX
DBMS DATA MANAGEMENT SYSTEM ppt Cs403 rtc
PDF
LectDBS_1.pdf
PPTX
Data Management
PPTX
DatabaseManagementSystem.pptx
PPTX
Database system concepts
Bank mangement system
Basics of Database Management System: Key Components
Database Concepts & SQL(1).pdf
Dbms module i
Dbms unit i
Database Management Systems.ppt
database introductoin optimization1-app6891.pdf
Introduction to Database
database management system anna universityUnit1.pptx
Dbms notes
Database management systems
23246406 dbms-unit-1
Database Management System NOTES for 2nd year
DBMS DATA MANAGEMENT SYSTEM ppt Cs403 rtc
LectDBS_1.pdf
Data Management
DatabaseManagementSystem.pptx
Database system concepts
Ad

More from SubhalaxmiPani30 (7)

PDF
c programing language Chapter 05 - Control Structures.pdf
PDF
c programing language for biggner Chapter 04 - Console IO.pdf
PDF
CNS07- Primes for cryptography for computer science
PDF
Modern Symmetric-key Ciphers for computer science student
PDF
BHAKTI, SUFI AND SIKH MOVEMENT-SSC CGL.pdf
PDF
odisha History with education related data
PDF
Introduction to structured query language
c programing language Chapter 05 - Control Structures.pdf
c programing language for biggner Chapter 04 - Console IO.pdf
CNS07- Primes for cryptography for computer science
Modern Symmetric-key Ciphers for computer science student
BHAKTI, SUFI AND SIKH MOVEMENT-SSC CGL.pdf
odisha History with education related data
Introduction to structured query language
Ad

Recently uploaded (20)

PPTX
Copy of ARAL Program Primer_071725(1).pptx
PPTX
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
PPTX
Approach to a child with acute kidney injury
PPT
hsl powerpoint resource goyloveh feb 07.ppt
PDF
Diabetes Mellitus , types , clinical picture, investigation and managment
PPTX
ACFE CERTIFICATION TRAINING ON LAW.pptx
PPTX
climate change of delhi impacts on climate and there effects
PPSX
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
PDF
Health aspects of bilberry: A review on its general benefits
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PDF
faiz-khans about Radiotherapy Physics-02.pdf
PDF
FAMILY PLANNING (preventative and social medicine pdf)
PPTX
GW4 BioMed Candidate Support Webinar 2025
DOCX
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
PPTX
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
PPTX
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
PDF
Chevening Scholarship Application and Interview Preparation Guide
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
PDF
Physical pharmaceutics two in b pharmacy
PDF
Review of Related Literature & Studies.pdf
Copy of ARAL Program Primer_071725(1).pptx
UCSP Section A - Human Cultural Variations,Social Differences,social ChangeCo...
Approach to a child with acute kidney injury
hsl powerpoint resource goyloveh feb 07.ppt
Diabetes Mellitus , types , clinical picture, investigation and managment
ACFE CERTIFICATION TRAINING ON LAW.pptx
climate change of delhi impacts on climate and there effects
namma_kalvi_12th_botany_chapter_9_ppt.ppsx
Health aspects of bilberry: A review on its general benefits
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
faiz-khans about Radiotherapy Physics-02.pdf
FAMILY PLANNING (preventative and social medicine pdf)
GW4 BioMed Candidate Support Webinar 2025
THEORY AND PRACTICE ASSIGNMENT SEMESTER MAY 2025.docx
Unit1_Kumod_deeplearning.pptx DEEP LEARNING
PAIN PATHWAY & MANAGEMENT OF ACUTE AND CHRONIC PAIN SPEAKER: Dr. Rajasekhar ...
Chevening Scholarship Application and Interview Preparation Guide
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
Physical pharmaceutics two in b pharmacy
Review of Related Literature & Studies.pdf

data abstraction for database management system

  • 1. Data Abstraction, Data Model & Database Language Fatema tuj Johora Lecturer, Department of CSE,DIU
  • 2. Topic of Discussion  Data Abstraction  Instance and Schema  Data Model  Data language
  • 3. Data abstraction  Data abstraction is hiding the complex data structure in order to simplify the user’s interface of the system.  Data abstraction allow developers to keep complex data structures away from the users through levels of abstraction.  The main purpoes of data abstraction is to achieve data independence in order to save time & cost, it also make it easier and safer for users to access data by hiding complex data structure and relationship.
  • 4. Three level of data abstraction or Three schema Architecture (external level) ( Conceptual level) (Internal level) User databas e
  • 5. View level or external level  It is the highest level of data abstraction and exhibits only a part of the whole database.  It exhibits the data in which the user is interested.  The view level can describe many views of the same data.
  • 6. Logical level or Conceptual level  In logical level, the data is stored in the form of the entity set, entities, their data types, the relationship among the entity sets, user operations performed to retrieve or modify the data and certain constraints on the data.
  • 7. Physical or Internal level  The physical or the internal level schema describes how the data is stored in the hardware.  It also describes how the data can be accessed.  The physical level shows the data abstraction at the lowest level and it has complex data structures.  Only the database administrator operates at this level.
  • 8. Instances and Schemas  Logical Schema – the overall logical structure of the database  Example: The database consists of information about a set of customers and accounts in a bank and the relationship between them  Analogous to type information of a variable in a program  Physical schema– the overall physical structure of the database  Instance – the actual content of the database at a particular point in time
  • 9. Data Model  A Database model defines the logical design and structure of a database and defines how data will be stored, accessed and updated in a database management system.  Relational model  Entity-Relationship data model (mainly for database design)  Object-based data models (Object-oriented and Object- relational)  Semistructured data model (XML)  Other older models:  Network model  Hierarchical model
  • 10. SQL  SQL stands for Structured Query Language  SQL is a standard language for accessing and manipulating databases.  SQL commands are instructions. It is used to communicate with the database.  SQL can perform various tasks, like- create a table, add data to tables, drop the table, modify the table, set permission for users.
  • 11. Types of SQL Commands  There are five types of SQL commands:  DDL (Data Definition Language)  DML (Data Manipulation Language)  DCL (Data Control Language)  TCL (Transection Control Language )  DQL (Data Query Language)
  • 12. Types of SQL Commands
  • 13. DDL  Examples of DDL commands:  CREATE – is used to create the database or its objects (like table, index, function, views, store procedure and triggers).  DROP – is used to delete objects from the database.  ALTER- is used to add, delete, or modify columns in an existing table  TRUNCATE–is used to remove all records from a table, including all spaces allocated for the records are removed.  COMMENT –is used to add comments to the data dictionary.  RENAME –is used to rename an object existing in the database.
  • 14. DML  Examples of DML:  INSERT – is used to insert data into a table.  UPDATE – is used to update existing data within a table.  DELETE – is used to delete records from a database table.
  • 15. DCL  Examples of DCL:  GRAND – It is used to give user access privileges to a database.  REVOKE – It is used to take back permissions from the user.
  • 16. TCL  Examples of DCL:  COMMIT – Commit command is used to save all the transactions to the database.  ROLLBACK– Rollback command is used to undo transactions that have not already been saved to the database.  SAVEPOINT– It is used to roll the transaction back to a certain point without rolling back the entire transaction.
  • 17. DQL  Examples of DCL:  SEARCH – It is used to select the attribute based on the condition described by WHERE clause.