SlideShare a Scribd company logo
1 of 31
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.
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

Similar to Ch1_Intro-95(1).ppt

Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra
 
Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...mayurjagdale4
 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Vijayananda Ratnam Ch
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdfTOUSEEQHAIDER14
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptxAshmitKashyap1
 
CST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxCST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxMEGHANA508383
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management systemPrerana Bhattarai
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notesUTSAHSINGH2
 
DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structureRUpaliLohar
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management SystemsSURBHI SAROHA
 

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

Utsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnetUtsav Mahendra : Introduction to Database and managemnet
Utsav Mahendra : Introduction to Database and managemnet
 
Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...Database Management Systems (DBMS) are software systems used to store, retrie...
Database Management Systems (DBMS) are software systems used to store, retrie...
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)Introduction to Database Management Systems (DBMS)
Introduction to Database Management Systems (DBMS)
 
DBMS-Unit-1.pptx
DBMS-Unit-1.pptxDBMS-Unit-1.pptx
DBMS-Unit-1.pptx
 
Unit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptxUnit 2 DATABASE ESSENTIALS.pptx
Unit 2 DATABASE ESSENTIALS.pptx
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
01-Database Administration and Management.pdf
01-Database Administration and Management.pdf01-Database Administration and Management.pdf
01-Database Administration and Management.pdf
 
Database management system.pptx
Database management system.pptxDatabase management system.pptx
Database management system.pptx
 
Unit1 DBMS Introduction
Unit1 DBMS IntroductionUnit1 DBMS Introduction
Unit1 DBMS Introduction
 
CST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptxCST204 DBMSMODULE1 PPT (1).pptx
CST204 DBMSMODULE1 PPT (1).pptx
 
Presentation on Database management system
Presentation on Database management systemPresentation on Database management system
Presentation on Database management system
 
Database management system lecture notes
Database management system lecture notesDatabase management system lecture notes
Database management system lecture notes
 
Dbms unit 1
Dbms unit 1Dbms unit 1
Dbms unit 1
 
DBMS
DBMS DBMS
DBMS
 
Fundamentals of DBMS
Fundamentals of DBMSFundamentals of DBMS
Fundamentals of DBMS
 
DBMS architecture &; system structure
DBMS architecture &; system  structureDBMS architecture &; system  structure
DBMS architecture &; system structure
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
 

Recently uploaded

Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 

Recently uploaded (20)

TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 

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.
  • 23.
  • 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