SlideShare a Scribd company logo
1 of 7
DBMS
DATABASE MANAGEMENT SYSTEM
DATA: known facts that can be recorded & that have implicit meaning.
DATABASE: Collection of related data.
DBMS: organization or arrangement of data through a software .
A dbms is a collection of programs that enables users to create & maintain a database.
It stores data, in such a way which is easier to retrieve, manipulate and helps to produce
information.
It has a largely varying size.
REAL LIFE APPLICATIONS:
 Computerized library systems
 Automated teller machines
 Flight reservation systems
 Computerized parts inventory systems
What is defining a database?
It involves the data types & DS & constraints of the data to be stored in the database.
A database may contain info. About the following:
1. Entities
2. Relationship between entities
{A student entity may contain name, roll no, branch}
DBMS VS FILE SYSTEM
Advantages of dbms over file system:
1. Self-describing nature of dbms
2. Controlling redundancy
3. Support of multiple views of data
4. Insulation(to secure) of data & programs
ADVANTAGES OF A DBMS
1. Data independence: Application programs should be as independent as possible from
details of data representation and storage. The DBMS can provide an abstract view of
the data to insulate application code from such details
2. Efficient data access: A DBMS utilizes a variety of sophisticated techniques to store
and retrieve data efficiently. This feature is especially important if the data is stored on
external storage devices.
3. Data integrity and security: If data is always accessed through the DBMS, the
DBMS can enforce integrity constraints on the data.
4. Concurrent access and crash recovery: A DBMS schedules concurrent accesses to the
data in such a manner that users can think of the data as being accessed by only one user
at a time. Further, the DBMS protects users from the effects of system failures.
 Controlling Redundancy
 Restricting Unauthorized Access
 Providing Persistent Storage for Program Objects and Data Structures
 Permitting Inferencing and Actions Using Rules
 Providing Multiple User Interfaces
 Representing Complex Relationships Among Data
 Enforcing Integrity Constraints
 Providing Backup and Recovery
The goal of a DBMS is to provide an environment that is both convenient and efficient to
use in
 Retrieving information from the database
 Storing information into the database
DISADVANTAGE OF DATABASE:
 High cost
 Expertized training
 Huge manpower
 It occupies large amount of disk space
 Complex in nature compared to file system
DATABASE SCHEMAS:
Database schema is the skeleton of database
A database schema defines its entities and the relationship among them. Database
schema is a descriptive detail of the database, which can be depicted by means of
schema diagrams. All these activities are done by database designer to help
programmers in order to give some ease of understanding all aspect of database.
Database schemas can be divided into 2 categories:
1. Physical Database Schema: It defines the how data will be stored in secondary
storage etc.
2. Logical Database Schema: It defines tables, views and integrity constraints etc.
E-R MODEL:
ENTITY RELATIONSHIP MODEL
It defines the conceptual view of database.
One to one
One to many
Many to one
Many to many
E-R MODEL
Entity
Entity in a school database
An entity set is a collection of similar types of entities. Entity set may contain entities with
attribute sharing similar values.
Attributes:
Entities are represented by means of their properties, called attributes. All attributes have
values. For example, a student entity may have name, class, age as attributes.
SQL:
SQL (Structured Query Language) is used to perform operations on the records stored in
database such as updating records, deleting records, creating and modifying tables, views
etc.
It is designed for managing data in a relational database management system (RDBMS).
It depends on relational algebra and tuple relational calculus.
Why SQL is required
SQL is required:
To create new databases, tables and views
To insert records in a database
To update records in a database
To delete records from a database
To retrieve data from a database
WHAT SQL DOES:
With SQL, we can query our database in a numbers of ways, using English-like
statements.
With SQL, user can access data from relational database management system.
USES OF SQL:
It allows user to describe the data.
It allows user to define the data in database and manipulate it when needed.
It allows user to create and drop database and table.
It allows user to create view, stored procedure, function in a database.
It allows user to set permission on tables, procedure and view.
SUBSETS OF SQL:
1. Data definition language (DDL)
2. Data manipulation language (DML)
3. Data control language (DCL)
DDL:
allows you to CREATE, ALTER and DELETE database objects such as schema, tables, view,
sequence etc.
DML:
It is used to perform following operations.
• Insert data into database
• Retrieve data from the database
• Update data in the database
• Delete data from the database
DCL:
allows you to control access to the database. It includes two commands GRANT and
REVOKE.
GRANT: to grant specific user to perform specific task.
REVOKE: to cancel previously denied or granted permissions
TRIGGER;
Trigger allows you to execute a batch of SQL code when an insert, update or delete
command is executed against a specific table.
Actually triggers are special type of stored procedures that are defined to execute
automatically in place or after data modifications

More Related Content

What's hot

Database management systems cs403 power point slides lecture 05
Database management systems   cs403 power point slides lecture 05Database management systems   cs403 power point slides lecture 05
Database management systems cs403 power point slides lecture 05Md.Abu Sayed
 
Database management functions
Database management functionsDatabase management functions
Database management functionsyhen06
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMSShubham Joon
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 
Ais Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesAis Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesSharing Slides Training
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentationsameerraaj
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Usman Tariq
 
Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMSPapan Sarkar
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to DatabaseSiti Ismail
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)welcometofacebook
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notesTanya Makkar
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database systemphilipsinter
 
Database systems
Database systemsDatabase systems
Database systemsDhani Ahmad
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Vidyasagar Mundroy
 

What's hot (20)

Database
DatabaseDatabase
Database
 
Database management systems cs403 power point slides lecture 05
Database management systems   cs403 power point slides lecture 05Database management systems   cs403 power point slides lecture 05
Database management systems cs403 power point slides lecture 05
 
Database management functions
Database management functionsDatabase management functions
Database management functions
 
Chapter-13-solutions
Chapter-13-solutionsChapter-13-solutions
Chapter-13-solutions
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
INTRODUCTION TO DATABASE
INTRODUCTION TO DATABASEINTRODUCTION TO DATABASE
INTRODUCTION TO DATABASE
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Ais Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational DatabasesAis Romney 2006 Slides 04 Relational Databases
Ais Romney 2006 Slides 04 Relational Databases
 
DbMs
DbMsDbMs
DbMs
 
Database management system presentation
Database management system presentationDatabase management system presentation
Database management system presentation
 
Files Vs DataBase
Files Vs DataBaseFiles Vs DataBase
Files Vs DataBase
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
Data Models [DATABASE SYSTEMS: Design, Implementation, and Management]
 
Data abstraction in DBMS
Data abstraction in DBMSData abstraction in DBMS
Data abstraction in DBMS
 
Introduction to Database
Introduction to DatabaseIntroduction to Database
Introduction to Database
 
Database fundamentals(database)
Database fundamentals(database)Database fundamentals(database)
Database fundamentals(database)
 
Complete dbms notes
Complete dbms notesComplete dbms notes
Complete dbms notes
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
Database systems
Database systemsDatabase systems
Database systems
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
 

Similar to Dbms notes

DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONSghazi103
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsZulfiquer Ahmed Amin
 
Database management system
Database management systemDatabase management system
Database management systemRizwanHafeez
 
DBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnDBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnRajasekhar364622
 
Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Rupen Parte
 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptxAaravSharma743156
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C ArchitectureSabeeh Ahmed
 
Data base management system
Data base management systemData base management system
Data base management systemNavneet Jingar
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfparveen204931475
 

Similar to Dbms notes (20)

DATABASE FUNCTIONS
DATABASE FUNCTIONSDATABASE FUNCTIONS
DATABASE FUNCTIONS
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
1.introduction qb
1.introduction qb1.introduction qb
1.introduction qb
 
Lecture#5
Lecture#5Lecture#5
Lecture#5
 
Database and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health InformaticsDatabase and Database Management (DBM): Health Informatics
Database and Database Management (DBM): Health Informatics
 
Database management system
Database management systemDatabase management system
Database management system
 
Unit 1.pptx
Unit 1.pptxUnit 1.pptx
Unit 1.pptx
 
DataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPTDataMgt - UNIT-I .PPT
DataMgt - UNIT-I .PPT
 
DBMS-material for b.tech students to learn
DBMS-material for b.tech students to learnDBMS-material for b.tech students to learn
DBMS-material for b.tech students to learn
 
Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)Database Management Systems (Mcom Ecommerce)
Database Management Systems (Mcom Ecommerce)
 
Database Management System.pptx
Database Management System.pptxDatabase Management System.pptx
Database Management System.pptx
 
Dbms
DbmsDbms
Dbms
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Dbms module i
Dbms module iDbms module i
Dbms module i
 
Unit 1 DBMS
Unit 1 DBMSUnit 1 DBMS
Unit 1 DBMS
 
oracle intro
oracle introoracle intro
oracle intro
 
27 fcs157al2
27 fcs157al227 fcs157al2
27 fcs157al2
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
Data base management system
Data base management systemData base management system
Data base management system
 
database introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdfdatabase introductoin optimization1-app6891.pdf
database introductoin optimization1-app6891.pdf
 

More from Upasana Talukdar

More from Upasana Talukdar (20)

Large group intervention at airbus
Large group intervention at airbusLarge group intervention at airbus
Large group intervention at airbus
 
Shine life insurance
Shine life insuranceShine life insurance
Shine life insurance
 
Ohio department of taxation case study
Ohio department of taxation case studyOhio department of taxation case study
Ohio department of taxation case study
 
Oprah winfrey-charismatic leader
Oprah winfrey-charismatic leaderOprah winfrey-charismatic leader
Oprah winfrey-charismatic leader
 
Reliance vs big bazaar
Reliance vs big bazaarReliance vs big bazaar
Reliance vs big bazaar
 
Case analysis of wal mart
Case analysis of wal martCase analysis of wal mart
Case analysis of wal mart
 
Key Account Management
Key Account ManagementKey Account Management
Key Account Management
 
contract act
contract actcontract act
contract act
 
Emma
Emma Emma
Emma
 
Real estate market
Real estate market Real estate market
Real estate market
 
interviews
interviewsinterviews
interviews
 
computer organization and architecture notes
computer organization and architecture notescomputer organization and architecture notes
computer organization and architecture notes
 
How to use movie maker
How to use movie maker How to use movie maker
How to use movie maker
 
Html tags list
Html tags listHtml tags list
Html tags list
 
Crytocurrency and bitcoins
Crytocurrency and bitcoinsCrytocurrency and bitcoins
Crytocurrency and bitcoins
 
FISCAL POLICY
FISCAL POLICYFISCAL POLICY
FISCAL POLICY
 
Ben and jerry's CASE STUDY ORGANIZATIONAL DESIGN
Ben and jerry's CASE STUDY ORGANIZATIONAL DESIGNBen and jerry's CASE STUDY ORGANIZATIONAL DESIGN
Ben and jerry's CASE STUDY ORGANIZATIONAL DESIGN
 
Data structures notes
Data structures notesData structures notes
Data structures notes
 
Java notes
Java notesJava notes
Java notes
 
Mba in India 101
Mba in India 101Mba in India 101
Mba in India 101
 

Recently uploaded

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdfKamal Acharya
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxSCMS School of Architecture
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxNadaHaitham1
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startQuintin Balsdon
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 

Recently uploaded (20)

Hospital management system project report.pdf
Hospital management system project report.pdfHospital management system project report.pdf
Hospital management system project report.pdf
 
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptxHOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
HOA1&2 - Module 3 - PREHISTORCI ARCHITECTURE OF KERALA.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 

Dbms notes

  • 1. DBMS DATABASE MANAGEMENT SYSTEM DATA: known facts that can be recorded & that have implicit meaning. DATABASE: Collection of related data. DBMS: organization or arrangement of data through a software . A dbms is a collection of programs that enables users to create & maintain a database. It stores data, in such a way which is easier to retrieve, manipulate and helps to produce information. It has a largely varying size. REAL LIFE APPLICATIONS:  Computerized library systems  Automated teller machines  Flight reservation systems  Computerized parts inventory systems What is defining a database? It involves the data types & DS & constraints of the data to be stored in the database. A database may contain info. About the following: 1. Entities 2. Relationship between entities {A student entity may contain name, roll no, branch} DBMS VS FILE SYSTEM Advantages of dbms over file system: 1. Self-describing nature of dbms 2. Controlling redundancy 3. Support of multiple views of data 4. Insulation(to secure) of data & programs
  • 2. ADVANTAGES OF A DBMS 1. Data independence: Application programs should be as independent as possible from details of data representation and storage. The DBMS can provide an abstract view of the data to insulate application code from such details 2. Efficient data access: A DBMS utilizes a variety of sophisticated techniques to store and retrieve data efficiently. This feature is especially important if the data is stored on external storage devices. 3. Data integrity and security: If data is always accessed through the DBMS, the DBMS can enforce integrity constraints on the data. 4. Concurrent access and crash recovery: A DBMS schedules concurrent accesses to the data in such a manner that users can think of the data as being accessed by only one user at a time. Further, the DBMS protects users from the effects of system failures.  Controlling Redundancy  Restricting Unauthorized Access  Providing Persistent Storage for Program Objects and Data Structures  Permitting Inferencing and Actions Using Rules  Providing Multiple User Interfaces  Representing Complex Relationships Among Data  Enforcing Integrity Constraints  Providing Backup and Recovery The goal of a DBMS is to provide an environment that is both convenient and efficient to use in  Retrieving information from the database  Storing information into the database DISADVANTAGE OF DATABASE:  High cost  Expertized training  Huge manpower  It occupies large amount of disk space  Complex in nature compared to file system
  • 3. DATABASE SCHEMAS: Database schema is the skeleton of database A database schema defines its entities and the relationship among them. Database schema is a descriptive detail of the database, which can be depicted by means of schema diagrams. All these activities are done by database designer to help programmers in order to give some ease of understanding all aspect of database. Database schemas can be divided into 2 categories: 1. Physical Database Schema: It defines the how data will be stored in secondary storage etc. 2. Logical Database Schema: It defines tables, views and integrity constraints etc. E-R MODEL: ENTITY RELATIONSHIP MODEL It defines the conceptual view of database.
  • 4. One to one One to many Many to one Many to many
  • 5. E-R MODEL Entity Entity in a school database An entity set is a collection of similar types of entities. Entity set may contain entities with attribute sharing similar values. Attributes: Entities are represented by means of their properties, called attributes. All attributes have values. For example, a student entity may have name, class, age as attributes. SQL: SQL (Structured Query Language) is used to perform operations on the records stored in database such as updating records, deleting records, creating and modifying tables, views etc. It is designed for managing data in a relational database management system (RDBMS). It depends on relational algebra and tuple relational calculus. Why SQL is required SQL is required: To create new databases, tables and views To insert records in a database To update records in a database To delete records from a database To retrieve data from a database
  • 6. WHAT SQL DOES: With SQL, we can query our database in a numbers of ways, using English-like statements. With SQL, user can access data from relational database management system. USES OF SQL: It allows user to describe the data. It allows user to define the data in database and manipulate it when needed. It allows user to create and drop database and table. It allows user to create view, stored procedure, function in a database. It allows user to set permission on tables, procedure and view. SUBSETS OF SQL: 1. Data definition language (DDL) 2. Data manipulation language (DML) 3. Data control language (DCL) DDL: allows you to CREATE, ALTER and DELETE database objects such as schema, tables, view, sequence etc. DML: It is used to perform following operations. • Insert data into database • Retrieve data from the database • Update data in the database • Delete data from the database DCL: allows you to control access to the database. It includes two commands GRANT and REVOKE. GRANT: to grant specific user to perform specific task. REVOKE: to cancel previously denied or granted permissions TRIGGER; Trigger allows you to execute a batch of SQL code when an insert, update or delete command is executed against a specific table.
  • 7. Actually triggers are special type of stored procedures that are defined to execute automatically in place or after data modifications