SlideShare a Scribd company logo
1 of 19
Data
 The fact and figures that can be recorded in system
and that have some special meaning assigned to it.
 Eg- Data of a customer is name ,telephone number ,
address,product purchased etc.
Database
 A database is a collection of related data items stored
at one place.
 Eg- College database stores information about
students ,teachers,classes,subjects(All related data).
 A database is nothing but set of data having some
relation between them.
Sample Database Structure
 Student Table
Sid Name Class Major
Course Table
Cid Name Hours
Department Table
Did Name
Marks Table
Sid Cid Marks Grade
Database Management System (DBMS)
 DBMS is a software system that helps in the process
of defining,constructing ,manipulating the database.
 It is also known as computerized record-keeping
system.
 DBMS have become an integral part of the information
system of many organizations as it is used to handle
huge amount of data.
Need of data in Database system
 Nowadays data have become an integral part of the
information systems of many organizations , so it is very
important to manage data in system.
 Data- As a corporate resource
Data management and control is very important for to the
efficient working of the organization.
 Data Availability
As most of the organizational functions are computerized
.Hence it increases the need to keep data available for user
 Maintaining Complex data
As complexity of the data grows complex relationships
between them need to be managed in simpler way.
 Data independence and efficient access.
 Data integrity and security.
 Concurrent access, recovery from crashes.
Benefits of
Database System over File System
1. Redundancy can be reduced
 As we are using relational approach for data
organization ,data is not stored at more than one
location.
 Repetition of information can be avoided which in
turn saves storage space.
2. Inconsistency can be avoided
 With the usage of database ,it is assured that all the
users access actual or true data present in the
database.
3. Data can be shared
 Multiple users can login at a time into the database to
access information.
 They can manipulate the database in a controlled
environment.
4. Security restrictions can be applied
 Security is the process of limiting access to the
database server itself for some users.
5. Integrity can be maintained
 Through integrity ,one can ensure only accurate data is
stored within the database.
Database Architecture
External View 1
SNo Lname Branch
No
External View 2
SNo Fname Lname Age Salary
Conceptual Model
SNo Fname Lname Age Salary BranchNo
Internal View
Create table Employee
(
Sno number,
Fname varchar(50),
Lname varchar(50),
Age number ,
Salary number,
BranchNo number
)
Database Scheme levels
Schema
 A description of data in terms of a data model is called
a schema.
 The description of a database is called database
schema , which is specified during database design
and it does not expected to change frequently.
Data Independence
1) Data Independence can be defined as the capacity to
change one level of scheme without changing the schema
at the next higher level.
2) Types :
a) Logical Data Independence
 Logical data independence is a capacity to change the
conceptual schema without having any changes to
external schema.
 Eg: We may change the conceptual schema by removing a
data item.In this case the external schemas that refer only
to the remaining data should not be affected.
b) Physical data independence
 Physical data independence is a capacity to change the
internal schema without having any changes to
conceptual schema.
 Eg: By creating additional access paths to improve the
performance of retrieval .If the same data as before
remains in the database ,we should not have to change
the conceptual schema.
Relational DBMS (RDBMS)
Introduction
 Was introduced by Dr. E.F.Codd in 1970 .
 Standard for relational databases is published by
ANSI(the American National Standard Institute)
Features
 A relational database is composed of many relations in
the form of two-dimensional tables of rows and columns
containing related tuples known as logical view.
 Tables/Relations are a logical structure which is a
collection of 2-dimensional tables consists of horizantal
rows and vertical columns.
Advantages
 Use of OOPs concept
 Highly secured data.
 Multiple users can access which is not possible in
simple DBMS.
 Supports Data Independence.
Disadvantages
 Inability to handle application areas like spatial
databases(eg-CAD) ,applications involving images etc.
Transaction Management
 A transaction is a series of small database operations
that together form a single large operation.
 A transaction is started by issuing a BEGIN
TRANSACTION command.
 Once this command is executed the DBMS starts
monitoring the transaction.
Properties of Transaction
Atomicity
 If one part of the transaction fails,the entire
transaction fails and the database state is left
unchanged.
 Database modification must follow an “all or nothing”
rule.
Consistency
 Ensure the database is clean at the end of the
transaction .
 Ensures that any transaction that the database
performs will take it from one consistent state to
another.
Isolation
 Each transaction must remain unaware of other
concurrently executing transaction.
Durability
 Ability of the DBMS to recover the committed transaction
updates against any kind of system failure(hardware or
software).
 Application programs use transaction to execute
sequences of operations when it is important that all the
operations are successfully completed.
 Eg During the transfer of money between two bank
accounts it is unacceptable for the operation that updates
the second account to fail.This would lead to the
transferred money being lost.It will have been withdrawn
from one account but not inserted into the second
account.
BEGIN TRANSACTION transfer
Deduct Rs.100 from account A
Add Rs.100 to account B
If no errors then
Save changes made by this operation
Else
Delete changes made by this operation
End If
END TRANSACTION transfer

More Related Content

Similar to Introduction To Database.ppt

A database is generally used for storing related, structured data, w.pdf
A database is generally used for storing related, structured data, w.pdfA database is generally used for storing related, structured data, w.pdf
A database is generally used for storing related, structured data, w.pdfangelfashions02
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptLisaMalar
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteRaj vardhan
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_materialgayaramesh
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMSShubham Joon
 
Advanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptAdvanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptBikalAdhikari4
 
Advantages And Disadvantages Of Database System
Advantages And Disadvantages Of Database SystemAdvantages And Disadvantages Of Database System
Advantages And Disadvantages Of Database SystemMarisela Stone
 
Database Management System
Database Management SystemDatabase Management System
Database Management SystemNishant Munjal
 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbmsvikramkagitapu
 
DBMS-1.pptx
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptxkingVox
 

Similar to Introduction To Database.ppt (20)

A database is generally used for storing related, structured data, w.pdf
A database is generally used for storing related, structured data, w.pdfA database is generally used for storing related, structured data, w.pdf
A database is generally used for storing related, structured data, w.pdf
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
Unit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 CompleteUnit 1: Introduction to DBMS Unit 1 Complete
Unit 1: Introduction to DBMS Unit 1 Complete
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
 
Unit 2 rdbms study_material
Unit 2  rdbms study_materialUnit 2  rdbms study_material
Unit 2 rdbms study_material
 
RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.RDBMS to NoSQL. An overview.
RDBMS to NoSQL. An overview.
 
Components and Advantages of DBMS
Components and Advantages of DBMSComponents and Advantages of DBMS
Components and Advantages of DBMS
 
Advanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.pptAdvanced Database Management System_Introduction Slide.ppt
Advanced Database Management System_Introduction Slide.ppt
 
DBMS Full.ppt
DBMS Full.pptDBMS Full.ppt
DBMS Full.ppt
 
8.DBMS.pptx
8.DBMS.pptx8.DBMS.pptx
8.DBMS.pptx
 
Advantages And Disadvantages Of Database System
Advantages And Disadvantages Of Database SystemAdvantages And Disadvantages Of Database System
Advantages And Disadvantages Of Database System
 
Database Management System
Database Management SystemDatabase Management System
Database Management System
 
database management system - overview of entire dbms
database management system - overview of entire dbmsdatabase management system - overview of entire dbms
database management system - overview of entire dbms
 
Introduction DBMS.pptx
Introduction DBMS.pptxIntroduction DBMS.pptx
Introduction DBMS.pptx
 
11 Database Concepts
11 Database Concepts11 Database Concepts
11 Database Concepts
 
Assign 1
Assign 1Assign 1
Assign 1
 
DBMS-1.pptx
DBMS-1.pptxDBMS-1.pptx
DBMS-1.pptx
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Dbms unit i
Dbms unit iDbms unit i
Dbms unit i
 

More from RithikRaj25

More from RithikRaj25 (17)

html1.ppt
html1.ppthtml1.ppt
html1.ppt
 
Data
DataData
Data
 
Data
DataData
Data
 
Data.ppt
Data.pptData.ppt
Data.ppt
 
DataTypes.ppt
DataTypes.pptDataTypes.ppt
DataTypes.ppt
 
NoSQL.pptx
NoSQL.pptxNoSQL.pptx
NoSQL.pptx
 
NoSQL
NoSQLNoSQL
NoSQL
 
text classification_NB.ppt
text classification_NB.ppttext classification_NB.ppt
text classification_NB.ppt
 
html1.ppt
html1.ppthtml1.ppt
html1.ppt
 
slide-keras-tf.pptx
slide-keras-tf.pptxslide-keras-tf.pptx
slide-keras-tf.pptx
 
Intro_OpenCV.ppt
Intro_OpenCV.pptIntro_OpenCV.ppt
Intro_OpenCV.ppt
 
lec1b.ppt
lec1b.pptlec1b.ppt
lec1b.ppt
 
PR7.ppt
PR7.pptPR7.ppt
PR7.ppt
 
objectdetect_tutorial.ppt
objectdetect_tutorial.pptobjectdetect_tutorial.ppt
objectdetect_tutorial.ppt
 
14_ReinforcementLearning.pptx
14_ReinforcementLearning.pptx14_ReinforcementLearning.pptx
14_ReinforcementLearning.pptx
 
datamining-lect11.pptx
datamining-lect11.pptxdatamining-lect11.pptx
datamining-lect11.pptx
 
week6a.ppt
week6a.pptweek6a.ppt
week6a.ppt
 

Recently uploaded

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort servicejennyeacort
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...Suhani Kapoor
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPramod Kumar Srivastava
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 

Recently uploaded (20)

VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
9711147426✨Call In girls Gurgaon Sector 31. SCO 25 escort service
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
VIP High Class Call Girls Jamshedpur Anushka 8250192130 Independent Escort Se...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptxPKS-TGC-1084-630 - Stage 1 Proposal.pptx
PKS-TGC-1084-630 - Stage 1 Proposal.pptx
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Call Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort ServiceCall Girls in Saket 99530🔝 56974 Escort Service
Call Girls in Saket 99530🔝 56974 Escort Service
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 

Introduction To Database.ppt

  • 1.
  • 2. Data  The fact and figures that can be recorded in system and that have some special meaning assigned to it.  Eg- Data of a customer is name ,telephone number , address,product purchased etc.
  • 3. Database  A database is a collection of related data items stored at one place.  Eg- College database stores information about students ,teachers,classes,subjects(All related data).  A database is nothing but set of data having some relation between them.
  • 4. Sample Database Structure  Student Table Sid Name Class Major Course Table Cid Name Hours Department Table Did Name Marks Table Sid Cid Marks Grade
  • 5. Database Management System (DBMS)  DBMS is a software system that helps in the process of defining,constructing ,manipulating the database.  It is also known as computerized record-keeping system.  DBMS have become an integral part of the information system of many organizations as it is used to handle huge amount of data.
  • 6. Need of data in Database system  Nowadays data have become an integral part of the information systems of many organizations , so it is very important to manage data in system.  Data- As a corporate resource Data management and control is very important for to the efficient working of the organization.  Data Availability As most of the organizational functions are computerized .Hence it increases the need to keep data available for user
  • 7.  Maintaining Complex data As complexity of the data grows complex relationships between them need to be managed in simpler way.  Data independence and efficient access.  Data integrity and security.  Concurrent access, recovery from crashes.
  • 8. Benefits of Database System over File System 1. Redundancy can be reduced  As we are using relational approach for data organization ,data is not stored at more than one location.  Repetition of information can be avoided which in turn saves storage space. 2. Inconsistency can be avoided  With the usage of database ,it is assured that all the users access actual or true data present in the database.
  • 9. 3. Data can be shared  Multiple users can login at a time into the database to access information.  They can manipulate the database in a controlled environment. 4. Security restrictions can be applied  Security is the process of limiting access to the database server itself for some users. 5. Integrity can be maintained  Through integrity ,one can ensure only accurate data is stored within the database.
  • 10. Database Architecture External View 1 SNo Lname Branch No External View 2 SNo Fname Lname Age Salary Conceptual Model SNo Fname Lname Age Salary BranchNo Internal View Create table Employee ( Sno number, Fname varchar(50), Lname varchar(50), Age number , Salary number, BranchNo number ) Database Scheme levels
  • 11. Schema  A description of data in terms of a data model is called a schema.  The description of a database is called database schema , which is specified during database design and it does not expected to change frequently.
  • 12. Data Independence 1) Data Independence can be defined as the capacity to change one level of scheme without changing the schema at the next higher level. 2) Types : a) Logical Data Independence  Logical data independence is a capacity to change the conceptual schema without having any changes to external schema.  Eg: We may change the conceptual schema by removing a data item.In this case the external schemas that refer only to the remaining data should not be affected.
  • 13. b) Physical data independence  Physical data independence is a capacity to change the internal schema without having any changes to conceptual schema.  Eg: By creating additional access paths to improve the performance of retrieval .If the same data as before remains in the database ,we should not have to change the conceptual schema.
  • 14. Relational DBMS (RDBMS) Introduction  Was introduced by Dr. E.F.Codd in 1970 .  Standard for relational databases is published by ANSI(the American National Standard Institute) Features  A relational database is composed of many relations in the form of two-dimensional tables of rows and columns containing related tuples known as logical view.  Tables/Relations are a logical structure which is a collection of 2-dimensional tables consists of horizantal rows and vertical columns.
  • 15. Advantages  Use of OOPs concept  Highly secured data.  Multiple users can access which is not possible in simple DBMS.  Supports Data Independence. Disadvantages  Inability to handle application areas like spatial databases(eg-CAD) ,applications involving images etc.
  • 16. Transaction Management  A transaction is a series of small database operations that together form a single large operation.  A transaction is started by issuing a BEGIN TRANSACTION command.  Once this command is executed the DBMS starts monitoring the transaction.
  • 17. Properties of Transaction Atomicity  If one part of the transaction fails,the entire transaction fails and the database state is left unchanged.  Database modification must follow an “all or nothing” rule. Consistency  Ensure the database is clean at the end of the transaction .  Ensures that any transaction that the database performs will take it from one consistent state to another.
  • 18. Isolation  Each transaction must remain unaware of other concurrently executing transaction. Durability  Ability of the DBMS to recover the committed transaction updates against any kind of system failure(hardware or software).  Application programs use transaction to execute sequences of operations when it is important that all the operations are successfully completed.  Eg During the transfer of money between two bank accounts it is unacceptable for the operation that updates the second account to fail.This would lead to the transferred money being lost.It will have been withdrawn from one account but not inserted into the second account.
  • 19. BEGIN TRANSACTION transfer Deduct Rs.100 from account A Add Rs.100 to account B If no errors then Save changes made by this operation Else Delete changes made by this operation End If END TRANSACTION transfer