SlideShare a Scribd company logo
Database Management Systems
SEM -III
Instructor:
Prof.Rajul Suthar
rks01@ganpatuniversity.ac.in
Chapter 1: Introduction
What is Database?
• The database is a collection of inter-related data which is used to
retrieve, insert and delete the data efficiently.
• It is also used to organize the data in the form of a table, schema,
views, and reports, etc.
• For example: The University Database (admin, staff, students and
faculty etc.)
What Is a DBMS?
• A database is a collection of data elements (facts) stored in a
computer in a systematic way, such that a computer program
can consult it to answer questions.
• The answers to those questions become information that
can be used to make decisions that may not be made with
the data elements alone.
• The computer program used to manage and query a
database is known as a database management system
(DBMS)
• Database management system is software that is used to
manage the database.
• For example: MySQL, Oracle,
Using DBMS users can perform following tasks:
1.Data Definition: In the context of SQL, data definition or data
description language (DDL) is a syntax for creating database objects such as tables, indices, and users.
• DDL statements are similar to a computer programming language for defining data structures, especially
database schemas.
2.Updation: is a computer programming language used for adding (inserting), deleting, and modifying (updating)
data in a database.
A DML is often a sublanguage of a broader database language such as SQL, with the DML comprising some of the
operators in the language
3.Data Retrieval:It is used to retrieve the data from the database which can be used by applications for various
purposes.
4.User Administration:It is used for registering and monitoring users, maintain data integrity, enforcing data
security, dealing with concurrency control, monitoring performance and recovering information corrupted by
unexpected failure.
What is File? Drawbacks of using file systems to store data
• File is a collection of related data stored in secondary memory like in ‘HDD’
• Data redundancy and inconsistency
• Multiple file formats, duplication of information in different files
• Difficulty in accessing data
• Need to write a new program to carry out each new task
• Data isolation
• Multiple files and formats
• Integrity problems
• Integrity constraints (e.g., account balance > 0) become “buried” in program code
rather than being stated explicitly
• Hard to add new constraints or change existing ones
Drawbacks of using file systems to store data (Cont.)
• Atomicity of updates
• Failures may leave database in an inconsistent state with partial
updates carried out
• Example: Transfer of funds from one account to another should
either complete or not happen at all
• Concurrent access by multiple users
• Concurrent access needed for performance
• Uncontrolled concurrent accesses can lead to inconsistencies
• Example: Two people reading a balance (say 100) and updating it by withdrawing
money (say 50 each) at the same time
• Security problems
• Hard to provide user access to some, but not all, data
Database systems offer solutions to all the above problems
Why Use a DBMS?
• Data independence and efficient access.
• Reduced application development time.
• Data integrity and security.
• Uniform data administration.
• Concurrent access, recovery from
crashes.
The various reasons a database is important are
Data Models
• A data model is a collection of high level concepts for describing data.
• A schema is a description of a particular collection of data, using the a given
data model.
• The relational model of data is the most widely used model today.
• Main concept: relation, basically a table with rows and columns. A set of
records
• Every relation has a schema, which describes the columns, or fields.
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.
TYPES OF DATABASE (MODEL)
NoSQL Database
Centralized Database
Relational Database
Distributed Database
Cloud Database
Network Databases
Hierarchical Databases
Object-oriented Databases
Hierarchical Model
• tree-like-structure
• single parent node.
• one one-to-many relationship
Network Model
• This is an extension of the Hierarchical model.
• like a graph
• more than one parent node.
Entity-relationship Model
• In this database model, relationships are created by
dividing object of interest into entity and its
characteristics into attributes.
Entity-relationship Model
• In this database model, relationships are created by
dividing object of interest into entity and its
characteristics into attributes.
Difference between Hierarchical, Network and
Relational Data Model
Hierarchical Data Model Network Data Model Relational Data Model
In this model, to store
data hierarchy method is
used. It is the oldest
method and not in use
today.
It organizes records to
one another through
links or pointers.
It organizes records in
the form of table and
relationship between
tables are set using
common fields.
To organize records, it
uses tree structure.
It organizes records in
the form of directed
graphs.
It organizes records in
the form of tables.
It implements 1:1 and
1:n relations.
In addition to 1:1 and 1:n
it also implements many
to many relationships.
In addition to 1:1 and 1:n
it also implements many
to many relationships.
Types of DBMS Architecture
The three-schema architecture is as follows:
• The internal level has an internal schema which
describes the physical storage structure of the
database.
Storage space allocations.
For Example: B-Trees, Hashing etc.
• Conceptual level is also known as logical level.
• The conceptual schema describes the structure
of the whole database.
• At the external level, a database contains several
schemas that sometimes called as subschema. The
subschema is used to describe the different view of the
database.
•An external schema is also known as view schema.
View of Data
• A database system is a collection of interrelated data and a set of programs that allow
users to access and modify these data. A major purpose of a database system is to
provide users with an abstract view of the data. That is, the system hides certain details
of how the data are stored and maintained.
• Data Abstraction
interactions with the system:
• Physical level. The lowest level of abstraction describes how the data are actually stored. The physical
level describes complex low-level data structures in detail.
• Logical level. The next-higher level of abstraction describes what data are stored in the database, and
what relationships exist among those data. The logical level thus describes the entire database in terms of a
small number of relatively simple structures. This is referred to as physical data independence. Database
administrators, who must decide what information to keep in the database, use the logical level of
abstraction.
• View level. The highest level of abstraction describes only part of the entire database. Even though the
logical level uses simpler structures, complexity remains because of the variety of information stored in a
large database.
The view level of abstraction exists to simplify their interaction with the system. The system may provide
many views for the same database.
The three levels of data abstraction.
You can get the complex data structure details at this level.
what data stored in database
user interaction with database system.
Eg. Hiding employee salary data.
2-Tier Architecture
3-Tier Architecture
Data Independence
• Data independence can be explained using the three-schema architecture.
• Data independence refers characteristic of being able to modify the schema at one level of the database
system without altering the schema at the next higher level.
There are two types of data independence:
1. Logical Data Independence
•Logical data independence refers characteristic of being able to change the conceptual schema
without having to change the external schema.
•Logical data independence is used to separate the external level from the conceptual view.
•If we do any changes in the conceptual view of the data, then the user view of the data would not be
affected.
•Logical data independence occurs at the user interface level.
2. Physical Data Independence
•Physical data independence can be defined as the capacity to change the internal schema without
having to change the conceptual schema.
•If we do any changes in the storage size of the database system server, then the Conceptual structure
of the database will not be affected.
•Physical data independence is used to separate conceptual levels from the internal levels.
•Physical data independence occurs at the logical interface level.
Ch1_Intro-95(1).ppt
Database Users and Administrators
People who work with a database can be categorized as database users
or database administrators.
Database users
• Application Programmers - They are the developers who interact with the database by means of DML
queries. These DML queries are written in the application programs like C, C++, JAVA, Pascal etc. These
queries are converted into object code to communicate with the database.
• For example, writing a C program to generate the report of employees who are working in particular
department will involve a query to fetch the data from database. It will include a embedded SQL query
in the C Program.
• Sophisticated Users - They are database developers, who write SQL queries to
select/insert/delete/update data. They do not use any application or programs to request the database.
They directly interact with the database by means of query language like SQL. These users will be
scientists, engineers, analysts who thoroughly study SQL and DBMS to apply the concepts in their
requirement. In short, we can say this category includes designers and developers of DBMS and SQL.
• Specialized Users - These are also sophisticated users, but they write special database application
programs. They are the developers who develop the complex programs to the requirement.
• Stand-alone Users - These users will have stand –alone database for their personal use. These kinds of
database will have readymade database packages which will have menus and graphical interfaces.
• Native Users - these are the users who use the existing application to interact with the database. For
example, online library system, ticket booking systems, ATMs etc. which has existing application and
users use them to interact with the database to fulfil their requests.
Database System Structure
Database System Structure
• Query Processor translates statements in a query language into low
level instructions the database manager understands. (May also
attempt to find an equivalent but more efficient form.) The Query
Processor simplifies and facilitates access to data.
• The DDL interpreter interprets DDL statements and records the
definition in the data dictionary.
• The DML compiler translates DML statements in a query language
into an evaluation plan consisting of low-level instructions that the
query evaluation engine understands.
• The DML compiler also performs query optimization, which is it picks
the lowest cost evaluation plan from among the alternatives.
• Query evaluation engine executes low level instructions generated by
the DML compiler.
Database System Structure
• several data structures are required for physical system
implementation:
• Data Files: store the database itself.
• Data Dictionary: stores information about the structure of the
database. It is used heavily. Great emphasis should be placed on
developing a good design and efficient implementation of the
dictionary.
• Indices: provide fast access to data items holding particular values.
Storage Manager
• The storage manager is important because database typically require
a large amount of storage space. So it is very important efficient use
of storage, and to minimize the movement of data to and from disk
DBMS vs RDBMS
DBMS stores data as file. RDBMS stores data in tabular form.
Data elements need to access individually. Multiple data elements can be accessed at the same time.
No relationship between data. Data is stored in the form of tables which are related to each other.
Normalization is not present. Normalization is present.
DBMS does not support distributed database. RDBMS supports distributed database.
It stores data in either a navigational or hierarchical form.
It uses a tabular structure where the headers are the column names,
and the rows contain corresponding values.
It deals with small quantity of data. It deals with large amount of data.
Data redundancy is common in this model. Keys and indexes do not allow Data redundancy.
It is used for small organization and deal with small data. It is used to handle large amount of data.
It supports single user. It supports multiple users.
Data fetching is slower for the large amount of data. Data fetching is fast because of relational approach.
The data in a DBMS is subject to low security levels with regards to
data manipulation.
There exists multiple levels of data security in a RDBMS.
Low software and hardware necessities. Higher software and hardware necessities.
Examples: XML, Window Registry, etc. MySQL, PostgreSQL, SQL Server, Oracle, Microsoft Access etc.
Advantages of DBMS
• Control redundancy
• Consistency
• Integrity
• Security
• Concurrency control
• Backup & recovery
• Data standard
• More information
• Data sharing & conflict control
• Productivity & accessibility
• Economy of scale
• Maintenance
Limitations of DBMS
• Complexity
• Size
• Cost
• Software
• Hardware
• Conversion
• Performance
• Vulnerability

More Related Content

PPTX
Azure Synapse Analytics Overview (r1)
PDF
WhereScape, the pioneer in data warehouse automation software
PDF
Lessons Learned: Understanding Pipeline Pricing in Azure Data Factory and Azu...
PPTX
Data Vault Vs Data Lake
PPTX
Data Quality Patterns in the Cloud with Azure Data Factory
PPTX
SAS basics Step by step learning
PPTX
Data Science Process.pptx
PPTX
Building a modern data warehouse
Azure Synapse Analytics Overview (r1)
WhereScape, the pioneer in data warehouse automation software
Lessons Learned: Understanding Pipeline Pricing in Azure Data Factory and Azu...
Data Vault Vs Data Lake
Data Quality Patterns in the Cloud with Azure Data Factory
SAS basics Step by step learning
Data Science Process.pptx
Building a modern data warehouse

What's hot (20)

PDF
CPGOIAS2 2022: Big Data e Machine Learning: vida real, cases práticos e poss...
PPTX
Azure Databricks is Easier Than You Think
PPTX
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
PDF
Data Catalog for Better Data Discovery and Governance
PDF
Solution Manager in Denodo Platform 7.0: Admin Made Simple
PDF
JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek)
PDF
Introduction - Lecture 1 - Advanced Topics in Information Systems (4016792ENR)
PDF
Azure SQL Data Warehouse
PPT
Basics Of SAS Programming Language
PPTX
PPTX
What is Data mining? Data mining Presentation
PPTX
Azure Fundamentals || AZ-900
PDF
Top 5 Trending Business Intelligence Tools | Edureka
PPTX
Understanding the Windows Server Administration Fundamentals (Part-1)
PPTX
Azure DataBricks for Data Engineering by Eugene Polonichko
PDF
Azure Synapse Analytics
PPTX
Cloud computing and its security issues
PDF
Azure vm introduction
PDF
Essential Reference and Master Data Management
PPTX
Big Data - The 5 Vs Everyone Must Know
CPGOIAS2 2022: Big Data e Machine Learning: vida real, cases práticos e poss...
Azure Databricks is Easier Than You Think
Big Data and Data Warehousing Together with Azure Synapse Analytics (SQLBits ...
Data Catalog for Better Data Discovery and Governance
Solution Manager in Denodo Platform 7.0: Admin Made Simple
JDD 2017: Nginx + Lua = OpenResty (Marcin Stożek)
Introduction - Lecture 1 - Advanced Topics in Information Systems (4016792ENR)
Azure SQL Data Warehouse
Basics Of SAS Programming Language
What is Data mining? Data mining Presentation
Azure Fundamentals || AZ-900
Top 5 Trending Business Intelligence Tools | Edureka
Understanding the Windows Server Administration Fundamentals (Part-1)
Azure DataBricks for Data Engineering by Eugene Polonichko
Azure Synapse Analytics
Cloud computing and its security issues
Azure vm introduction
Essential Reference and Master Data Management
Big Data - The 5 Vs Everyone Must Know
Ad

Similar to Ch1_Intro-95(1).ppt (20)

PPTX
Introduction to Database Management Systems (DBMS)
PPTX
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
PDF
CST204 DBMS Module-1
PPT
Database management system lecture notes
PPTX
introduction to database system concepts
PPTX
Ch 2-introduction to dbms
PPT
Basics of Database Management System: Key Components
PPTX
Database Management System
PDF
Unit 1: Introduction to DBMS Unit 1 Complete
PPTX
Computer class of agriculture production 5.pptx
PPTX
Introduction to Database System-WEEK2.pptx
PPTX
Unit 1 dbms
PPTX
Introduction to database
PPTX
DatabaseManagementSystem.pptx
PPTX
Database Management System.pptx
PPTX
Data resource management and DSS
PPTX
DBMS-material for b.tech students to learn
PPTX
CHAPTER 1 Database system architecture.pptx
PPTX
Unit 2 DATABASE ESSENTIALS.pptx
PPTX
data base management sysytem a new apprach .pptx
Introduction to Database Management Systems (DBMS)
DATABASE MANAGEMENT SYSTEMS CS 3492.pptx
CST204 DBMS Module-1
Database management system lecture notes
introduction to database system concepts
Ch 2-introduction to dbms
Basics of Database Management System: Key Components
Database Management System
Unit 1: Introduction to DBMS Unit 1 Complete
Computer class of agriculture production 5.pptx
Introduction to Database System-WEEK2.pptx
Unit 1 dbms
Introduction to database
DatabaseManagementSystem.pptx
Database Management System.pptx
Data resource management and DSS
DBMS-material for b.tech students to learn
CHAPTER 1 Database system architecture.pptx
Unit 2 DATABASE ESSENTIALS.pptx
data base management sysytem a new apprach .pptx
Ad

Recently uploaded (20)

PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Computing-Curriculum for Schools in Ghana
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
Lesson notes of climatology university.
PPTX
Cell Structure & Organelles in detailed.
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Complications of Minimal Access Surgery at WLH
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
VCE English Exam - Section C Student Revision Booklet
Computing-Curriculum for Schools in Ghana
Microbial disease of the cardiovascular and lymphatic systems
Sports Quiz easy sports quiz sports quiz
Lesson notes of climatology university.
Cell Structure & Organelles in detailed.
102 student loan defaulters named and shamed – Is someone you know on the list?
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
O7-L3 Supply Chain Operations - ICLT Program
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Basic Mud Logging Guide for educational purpose
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Supply Chain Operations Speaking Notes -ICLT Program
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
Final Presentation General Medicine 03-08-2024.pptx
Complications of Minimal Access Surgery at WLH
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES

Ch1_Intro-95(1).ppt

  • 1. Database Management Systems SEM -III Instructor: Prof.Rajul Suthar rks01@ganpatuniversity.ac.in
  • 3. What is Database? • The database is a collection of inter-related data which is used to retrieve, insert and delete the data efficiently. • It is also used to organize the data in the form of a table, schema, views, and reports, etc. • For example: The University Database (admin, staff, students and faculty etc.)
  • 4. What Is a DBMS? • A database is a collection of data elements (facts) stored in a computer in a systematic way, such that a computer program can consult it to answer questions. • The answers to those questions become information that can be used to make decisions that may not be made with the data elements alone. • The computer program used to manage and query a database is known as a database management system (DBMS) • Database management system is software that is used to manage the database. • For example: MySQL, Oracle,
  • 5. Using DBMS users can perform following tasks: 1.Data Definition: In the context of SQL, data definition or data description language (DDL) is a syntax for creating database objects such as tables, indices, and users. • DDL statements are similar to a computer programming language for defining data structures, especially database schemas. 2.Updation: is a computer programming language used for adding (inserting), deleting, and modifying (updating) data in a database. A DML is often a sublanguage of a broader database language such as SQL, with the DML comprising some of the operators in the language 3.Data Retrieval:It is used to retrieve the data from the database which can be used by applications for various purposes. 4.User Administration:It is used for registering and monitoring users, maintain data integrity, enforcing data security, dealing with concurrency control, monitoring performance and recovering information corrupted by unexpected failure.
  • 6. What is File? Drawbacks of using file systems to store data • File is a collection of related data stored in secondary memory like in ‘HDD’ • Data redundancy and inconsistency • Multiple file formats, duplication of information in different files • Difficulty in accessing data • Need to write a new program to carry out each new task • Data isolation • Multiple files and formats • Integrity problems • Integrity constraints (e.g., account balance > 0) become “buried” in program code rather than being stated explicitly • Hard to add new constraints or change existing ones
  • 7. Drawbacks of using file systems to store data (Cont.) • Atomicity of updates • Failures may leave database in an inconsistent state with partial updates carried out • Example: Transfer of funds from one account to another should either complete or not happen at all • Concurrent access by multiple users • Concurrent access needed for performance • Uncontrolled concurrent accesses can lead to inconsistencies • Example: Two people reading a balance (say 100) and updating it by withdrawing money (say 50 each) at the same time • Security problems • Hard to provide user access to some, but not all, data Database systems offer solutions to all the above problems
  • 8. Why Use a DBMS? • Data independence and efficient access. • Reduced application development time. • Data integrity and security. • Uniform data administration. • Concurrent access, recovery from crashes.
  • 9. The various reasons a database is important are
  • 10. Data Models • A data model is a collection of high level concepts for describing data. • A schema is a description of a particular collection of data, using the a given data model. • The relational model of data is the most widely used model today. • Main concept: relation, basically a table with rows and columns. A set of records • Every relation has a schema, which describes the columns, or fields. 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.
  • 11. TYPES OF DATABASE (MODEL) NoSQL Database Centralized Database Relational Database Distributed Database Cloud Database Network Databases Hierarchical Databases Object-oriented Databases
  • 12. Hierarchical Model • tree-like-structure • single parent node. • one one-to-many relationship
  • 13. Network Model • This is an extension of the Hierarchical model. • like a graph • more than one parent node.
  • 14. Entity-relationship Model • In this database model, relationships are created by dividing object of interest into entity and its characteristics into attributes.
  • 15. Entity-relationship Model • In this database model, relationships are created by dividing object of interest into entity and its characteristics into attributes.
  • 16. Difference between Hierarchical, Network and Relational Data Model Hierarchical Data Model Network Data Model Relational Data Model In this model, to store data hierarchy method is used. It is the oldest method and not in use today. It organizes records to one another through links or pointers. It organizes records in the form of table and relationship between tables are set using common fields. To organize records, it uses tree structure. It organizes records in the form of directed graphs. It organizes records in the form of tables. It implements 1:1 and 1:n relations. In addition to 1:1 and 1:n it also implements many to many relationships. In addition to 1:1 and 1:n it also implements many to many relationships.
  • 17. Types of DBMS Architecture
  • 18. The three-schema architecture is as follows: • The internal level has an internal schema which describes the physical storage structure of the database. Storage space allocations. For Example: B-Trees, Hashing etc. • Conceptual level is also known as logical level. • The conceptual schema describes the structure of the whole database. • At the external level, a database contains several schemas that sometimes called as subschema. The subschema is used to describe the different view of the database. •An external schema is also known as view schema.
  • 19. View of Data • A database system is a collection of interrelated data and a set of programs that allow users to access and modify these data. A major purpose of a database system is to provide users with an abstract view of the data. That is, the system hides certain details of how the data are stored and maintained. • Data Abstraction interactions with the system: • Physical level. The lowest level of abstraction describes how the data are actually stored. The physical level describes complex low-level data structures in detail. • Logical level. The next-higher level of abstraction describes what data are stored in the database, and what relationships exist among those data. The logical level thus describes the entire database in terms of a small number of relatively simple structures. This is referred to as physical data independence. Database administrators, who must decide what information to keep in the database, use the logical level of abstraction. • View level. The highest level of abstraction describes only part of the entire database. Even though the logical level uses simpler structures, complexity remains because of the variety of information stored in a large database. The view level of abstraction exists to simplify their interaction with the system. The system may provide many views for the same database.
  • 20. The three levels of data abstraction. You can get the complex data structure details at this level. what data stored in database user interaction with database system. Eg. Hiding employee salary data.
  • 22. Data Independence • Data independence can be explained using the three-schema architecture. • Data independence refers characteristic of being able to modify the schema at one level of the database system without altering the schema at the next higher level. There are two types of data independence: 1. Logical Data Independence •Logical data independence refers characteristic of being able to change the conceptual schema without having to change the external schema. •Logical data independence is used to separate the external level from the conceptual view. •If we do any changes in the conceptual view of the data, then the user view of the data would not be affected. •Logical data independence occurs at the user interface level. 2. Physical Data Independence •Physical data independence can be defined as the capacity to change the internal schema without having to change the conceptual schema. •If we do any changes in the storage size of the database system server, then the Conceptual structure of the database will not be affected. •Physical data independence is used to separate conceptual levels from the internal levels. •Physical data independence occurs at the logical interface level.
  • 24. Database Users and Administrators People who work with a database can be categorized as database users or database administrators.
  • 25. Database users • Application Programmers - They are the developers who interact with the database by means of DML queries. These DML queries are written in the application programs like C, C++, JAVA, Pascal etc. These queries are converted into object code to communicate with the database. • For example, writing a C program to generate the report of employees who are working in particular department will involve a query to fetch the data from database. It will include a embedded SQL query in the C Program. • Sophisticated Users - They are database developers, who write SQL queries to select/insert/delete/update data. They do not use any application or programs to request the database. They directly interact with the database by means of query language like SQL. These users will be scientists, engineers, analysts who thoroughly study SQL and DBMS to apply the concepts in their requirement. In short, we can say this category includes designers and developers of DBMS and SQL. • Specialized Users - These are also sophisticated users, but they write special database application programs. They are the developers who develop the complex programs to the requirement. • Stand-alone Users - These users will have stand –alone database for their personal use. These kinds of database will have readymade database packages which will have menus and graphical interfaces. • Native Users - these are the users who use the existing application to interact with the database. For example, online library system, ticket booking systems, ATMs etc. which has existing application and users use them to interact with the database to fulfil their requests.
  • 27. Database System Structure • Query Processor translates statements in a query language into low level instructions the database manager understands. (May also attempt to find an equivalent but more efficient form.) The Query Processor simplifies and facilitates access to data. • The DDL interpreter interprets DDL statements and records the definition in the data dictionary. • The DML compiler translates DML statements in a query language into an evaluation plan consisting of low-level instructions that the query evaluation engine understands. • The DML compiler also performs query optimization, which is it picks the lowest cost evaluation plan from among the alternatives. • Query evaluation engine executes low level instructions generated by the DML compiler.
  • 28. Database System Structure • several data structures are required for physical system implementation: • Data Files: store the database itself. • Data Dictionary: stores information about the structure of the database. It is used heavily. Great emphasis should be placed on developing a good design and efficient implementation of the dictionary. • Indices: provide fast access to data items holding particular values. Storage Manager • The storage manager is important because database typically require a large amount of storage space. So it is very important efficient use of storage, and to minimize the movement of data to and from disk
  • 29. DBMS vs RDBMS DBMS stores data as file. RDBMS stores data in tabular form. Data elements need to access individually. Multiple data elements can be accessed at the same time. No relationship between data. Data is stored in the form of tables which are related to each other. Normalization is not present. Normalization is present. DBMS does not support distributed database. RDBMS supports distributed database. It stores data in either a navigational or hierarchical form. It uses a tabular structure where the headers are the column names, and the rows contain corresponding values. It deals with small quantity of data. It deals with large amount of data. Data redundancy is common in this model. Keys and indexes do not allow Data redundancy. It is used for small organization and deal with small data. It is used to handle large amount of data. It supports single user. It supports multiple users. Data fetching is slower for the large amount of data. Data fetching is fast because of relational approach. The data in a DBMS is subject to low security levels with regards to data manipulation. There exists multiple levels of data security in a RDBMS. Low software and hardware necessities. Higher software and hardware necessities. Examples: XML, Window Registry, etc. MySQL, PostgreSQL, SQL Server, Oracle, Microsoft Access etc.
  • 30. Advantages of DBMS • Control redundancy • Consistency • Integrity • Security • Concurrency control • Backup & recovery • Data standard • More information • Data sharing & conflict control • Productivity & accessibility • Economy of scale • Maintenance
  • 31. Limitations of DBMS • Complexity • Size • Cost • Software • Hardware • Conversion • Performance • Vulnerability