SlideShare a Scribd company logo
Relational Database Management System
Relational Database Management System 
DATA 
DATABASE 
DBMS/RDBMS 
Information
File Processing System 
Database 
(Information in 
Files Format) 
Application 
Programs 
(Programs 
Written in C 
Pascal etc.) 
File System 
(Data 
Structure 
File Handling)
Disadvantages of FPS 
Data Redundancy and Inconsistency 
 Difficulty in accessing data 
Data isolation 
Integrity Problems 
Atomicity Problems 
Concurrent-access anomalies 
Security Problems
Data Redundancy and Inconsistency 
Name Address 
ABC Bhiwani 
DEF Delhi 
AccNo Name Address 
1002 ABC Bhiwani 
1005 DEF Jaipur 
Customer Information Saving Account
Difficulty in accessing data 
Application 
Programs 
(Programs 
Written in C 
Pascal etc.) 
File System 
(Data Structure 
File Handling) 
Database 
(Information Storage 
in Files Format) 
Manager 
Requirement
Requirements of a DBMS 
• A mechanism for specification of data and its dependencies 
(Integrity Constraints) in an integrated fashion. 
• Prevention of redundancy and inconsistency. 
• Provision of adequate security and access-rights. 
• Mechanism for concurrency control. 
• Mechanism for recovery from failure. Additionally any DBMS must provide 
• Schemes for specification of procession rules or application Programs. 
• Efficient techniques for storage and retrieval of data from the secondary
D 
B 
M 
S 
File 
Manager Secondary 
Storage 
A DBMS has two major components, namely 
Structure of Database is called Database Schema. 
Instance, which is a state of the database with the actual data loaded. 
A set of software tools/programs which access, update and 
process the database, called the query and update-mechanism.
Data Independence 
The ability to modify a schema definition in one level without affecting a 
schema definition in the next higher level is called data independence. 
Physical data independence Logical data independence 
Create table emp 
(empno number(10),------,-- 
------);
Data Models 
A Data Model is a mechanism for describing the data, their interrelationships 
and the constraints. 
Object-based Conceptual models. 
Entity-Relationship model 
Record-based models. 
Relational Model 
Network Model 
Hierarchical Model 
Physical data models.
The E-R Model 
Entities : An entity is a distinct clearly identifiable object of the database e.g Book Attribute : 
Each Entity is characterized by a set of attributes e.g. Acc.No. Entity Set : Set of all entities 
having attributes of the same type. Relationships : A relationship is a mapping between entity 
sets. 
Acc_No Title 
Acc_No Card_No Name 
Book Borrowed_By USERS 
____
Hierarchical Model 
This is special kind of a network model where the relationship is 
essentially a tree-like structure. 
Hospital 
Wards Units 
Patient Doctors Nurses Cardiology Skin
Physical Data Models 
Physical data models are used to describe data at the lowest level. In contrast to logical 
data models, there are few physical data models In use. Two of the widely known 
ones are the Unifying model and frame-Memory model. 
Database Languages 
Database Languages 
Data-Definition Data-Manipulation Data-Control 
Create Table Test 
( 
Title 
Varchar2(20), 
-------- ,-------); 
Update 
Insert 
Delete 
Query 
GRANT Connect, 
Resource TO x 
User
Database Administrator 
Roles of DBA 
• Schema Definition 
• Storage structure and access-method definition 
• Schema and Physical-organization modification 
• Granting of authorization for data access 
• Integrity-constraint specification 
Terms 
• Simple and Composite Attributes 
• Single-valued and Multivalued Attributes 
• Null Attributes 
• Derived Attributes 
• Existence Dependencies 
•Weak Entity Set and Strong Entity Set
Weak Entity Set
Keys 
Keys 
Candidate Key Secondary Key Foreign Key 
Primary Key Alternate Key 
Composite Key
Mapping Cardinalities 
Mapping cardinalities, or cardinality ratios, express the number of entities to which 
another entity can be associated via a relationship set. For a binary relationship set R 
between entity sets A and B, the mapping Cardinality must be one of the following 
A B A B 
One to One One to Many
A B A B 
Many to One Many to Many
More on E-R Diagrams 
Company 
Owns Multiple Relationships between Leased 
Same entity set 
Vehicle 
Manager 
Staff Reports to 
Subordinate 
Circular Relationship
Specialization & Generalization
The Relational Algebra 
The relational algebra is a procedural query language. 
Fundamental Operations 
select (unary) 
project (unary) 
rename (unary) 
Fundamental Operations 
cartesian product (binary) 
union (binary) 
set-difference (binary) 
Several other operations, dened in terms of the fundamental operations: 
set-intersection 
natural join 
division 
assignment 
Operations produce a new relation as a result.
Formal Definition of Relational Algebra
The Select Operation
The Project Operation
The Cartesian Product Operation
The Union Operation 
The Set Difference Operation
Relational Calculus 
Relational Calculus is a nonprocedural Query language 
Tuple Relational Calculus 
Uses Tuple variables which take values of an entire tuple 
Domain Relational Calculus 
Uses Domain variables which takes values from an attribute
Tuple Relational Calculus
Normalization 
Normalization is a process of removing redundancy using functional Dependencies. 
To reduce redundancy it is necessary to decompose a relation into a number of smaller relations. 
There are several normal Forms. 
-First Normal Form (1 NF) 
-Second Normal Form (2 NF) 
-Third Normal Form(3 NF) 
-Boyce-Codd Normal Form (BCNF)
First Normal Form (1NF) 
This normal form says that all attributes are simple. 
An attribute is said to be simple if it does not contain any subparts. 
An attributes which contains subparts is called complex attributes. 
F_name L_name 
C_addr 
City State Zip 
Name
Second Normal Form (2NF) 
A relation is said to be in 2NF if it is in 1NF and 
All non-prime attributes are fully functionally dependent on candidate key 
Consider a relation savings_deposit having the fol owing structure:- 
Saving_deposit (name, addr, acc_no, amt ) 
With the fol owing FDs : 
name Add 
name, acc_no addr 
Here [name, acc_no ] is the candidate key and addr and amt are the non 
prime attributes. 
Among the non-prime attributes amt depends on [name, acc_no ] whereas 
addr depends 
on name only. 
Note that due to FD name 
Address causing redundancy. 
addr every tuple with the same name will contain the same 
This redundancy arises because a non-prime attribute like address is 
dependent on an attribute
Third Normal Form (3NF) 
A relation is said to be in 3NF and non-prime attributes are not dependent 
On each other. 
Consider the relation – 
s_by ( s_name, item, price, gift_item ) 
With FDs 
s_name, item price 
Price gift_item 
Here al prime attributes are ful y functional dependent on candidate 
keys, the 
Non-prime attribute gift-item is also ful y functional dependent on the 
non-prime 
Attribute price. This create redundancy because every price value 
there is a fixed 
Gift item. 
We shal have to impose the additional restriction that no non-prime 
attribute can 
Be functional y dependent on another non-prime attributes.
Boyce-Codd Normal Form (BCNF)

More Related Content

What's hot

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Designguest8fdbdd
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMSkoolkampus
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
Eddyzulham Mahluzydde
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
Nishant Munjal
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
Ovais Imtiaz
 
The three level of data modeling
The three level of data modelingThe three level of data modeling
The three level of data modelingsharmila_yusof
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
eidah20
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem
 
Relational model
Relational modelRelational model
Relational model
WBUTTUTORIALS
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
ATS SBGI MIRAJ
 
Relational model
Relational modelRelational model
Relational model
Sabana Maharjan
 
Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1
Eddyzulham Mahluzydde
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
Tetala Vishnu Vardhan Reddy
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
Mustafa Kamel Mohammadi
 
Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013
Prosanta Ghosh
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14
Jeanie Arnoco
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
AnilPokhrel7
 

What's hot (20)

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
 
08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS08. Object Oriented Database in DBMS
08. Object Oriented Database in DBMS
 
Chapter 3 Entity Relationship Model
Chapter 3 Entity Relationship ModelChapter 3 Entity Relationship Model
Chapter 3 Entity Relationship Model
 
Relational Data Model Introduction
Relational Data Model IntroductionRelational Data Model Introduction
Relational Data Model Introduction
 
DBMS - Relational Model
DBMS - Relational ModelDBMS - Relational Model
DBMS - Relational Model
 
The three level of data modeling
The three level of data modelingThe three level of data modeling
The three level of data modeling
 
Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2Chapter3 the relational data model and the relation database constraints part2
Chapter3 the relational data model and the relation database constraints part2
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
 
Relational model
Relational modelRelational model
Relational model
 
Ch 9 S Q L
Ch 9  S Q LCh 9  S Q L
Ch 9 S Q L
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 
Relational model
Relational modelRelational model
Relational model
 
Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1Chapter 2 Relational Data Model-part1
Chapter 2 Relational Data Model-part1
 
Dbms relational data model and sql queries
Dbms relational data model and sql queries Dbms relational data model and sql queries
Dbms relational data model and sql queries
 
Object oriented data model
Object oriented data modelObject oriented data model
Object oriented data model
 
Fundamentals of database system - Relational data model and relational datab...
Fundamentals of database system  - Relational data model and relational datab...Fundamentals of database system  - Relational data model and relational datab...
Fundamentals of database system - Relational data model and relational datab...
 
Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013Dbms ii mca-ch3-er-model-2013
Dbms ii mca-ch3-er-model-2013
 
The Database Environment Chapter 14
The Database Environment Chapter 14The Database Environment Chapter 14
The Database Environment Chapter 14
 
OODM-object oriented data model
OODM-object oriented data modelOODM-object oriented data model
OODM-object oriented data model
 
ch6
ch6ch6
ch6
 

Viewers also liked

Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
dangwalrajendra888
 
Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMS
Shailesh Pachori
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-ConceptsBhaskar Gunda
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
Rasan Samarasinghe
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
Muhammad Sultan Bhatti
 
Virus
VirusVirus
Java script
Java scriptJava script
Java script
argusacademy
 
Virus examples
Virus examplesVirus examples
Virus examples
argusacademy
 
VISUAL BASIC .net ii
VISUAL BASIC .net iiVISUAL BASIC .net ii
VISUAL BASIC .net ii
argusacademy
 
Paint
PaintPaint
VISUAL BASIC .net i
VISUAL BASIC .net iVISUAL BASIC .net i
VISUAL BASIC .net i
argusacademy
 
Php basic
Php basicPhp basic
Php basic
argusacademy
 
Php opps
Php oppsPhp opps
Php opps
argusacademy
 
Application software
Application softwareApplication software
Application software
argusacademy
 
VISUAL BASIC .net vi
VISUAL BASIC .net viVISUAL BASIC .net vi
VISUAL BASIC .net vi
argusacademy
 
TALLY Service tax & tds ENTRY
TALLY Service tax & tds ENTRYTALLY Service tax & tds ENTRY
TALLY Service tax & tds ENTRY
argusacademy
 
COMPUTER Tips ‘n’ Tricks
COMPUTER Tips ‘n’   TricksCOMPUTER Tips ‘n’   Tricks
COMPUTER Tips ‘n’ Tricks
argusacademy
 
Computer development
Computer developmentComputer development
Computer development
argusacademy
 
TALLY 1 st level entry
TALLY 1 st level entryTALLY 1 st level entry
TALLY 1 st level entry
argusacademy
 
TALLY Pos ENTRY
TALLY Pos ENTRYTALLY Pos ENTRY
TALLY Pos ENTRY
argusacademy
 

Viewers also liked (20)

Basic DBMS ppt
Basic DBMS pptBasic DBMS ppt
Basic DBMS ppt
 
Historical Evolution of RDBMS
Historical Evolution of RDBMSHistorical Evolution of RDBMS
Historical Evolution of RDBMS
 
NoSQL-Database-Concepts
NoSQL-Database-ConceptsNoSQL-Database-Concepts
NoSQL-Database-Concepts
 
DISE - Database Concepts
DISE - Database ConceptsDISE - Database Concepts
DISE - Database Concepts
 
Mis assignment (database)
Mis assignment (database)Mis assignment (database)
Mis assignment (database)
 
Virus
VirusVirus
Virus
 
Java script
Java scriptJava script
Java script
 
Virus examples
Virus examplesVirus examples
Virus examples
 
VISUAL BASIC .net ii
VISUAL BASIC .net iiVISUAL BASIC .net ii
VISUAL BASIC .net ii
 
Paint
PaintPaint
Paint
 
VISUAL BASIC .net i
VISUAL BASIC .net iVISUAL BASIC .net i
VISUAL BASIC .net i
 
Php basic
Php basicPhp basic
Php basic
 
Php opps
Php oppsPhp opps
Php opps
 
Application software
Application softwareApplication software
Application software
 
VISUAL BASIC .net vi
VISUAL BASIC .net viVISUAL BASIC .net vi
VISUAL BASIC .net vi
 
TALLY Service tax & tds ENTRY
TALLY Service tax & tds ENTRYTALLY Service tax & tds ENTRY
TALLY Service tax & tds ENTRY
 
COMPUTER Tips ‘n’ Tricks
COMPUTER Tips ‘n’   TricksCOMPUTER Tips ‘n’   Tricks
COMPUTER Tips ‘n’ Tricks
 
Computer development
Computer developmentComputer development
Computer development
 
TALLY 1 st level entry
TALLY 1 st level entryTALLY 1 st level entry
TALLY 1 st level entry
 
TALLY Pos ENTRY
TALLY Pos ENTRYTALLY Pos ENTRY
TALLY Pos ENTRY
 

Similar to Rdbms

Rdms-Relational Database Management System
Rdms-Relational Database Management SystemRdms-Relational Database Management System
Rdms-Relational Database Management System
Tonmoy zahid Rishad
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
Shakila Mahjabin
 
Database management systems
Database management systemsDatabase management systems
Database management systems
Ravindra Singh Gohil
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
Varish Bajaj
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
Anjaan Gajendra
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
GayathriPG3
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)
shahab3
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
Sonia Mim
 
DBMS - Introduction
DBMS - IntroductionDBMS - Introduction
DBMS - Introduction
JOSEPHINE297640
 
Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
TesfanehGorfu
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
NIVETHA37590
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in database
maqsoodahmedbscsfkhp
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
Rc Os
 
database
databasedatabase
Ch1
Ch1Ch1
Ch1CAG
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMSkoolkampus
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
Ranjit273515
 

Similar to Rdbms (20)

Rdms-Relational Database Management System
Rdms-Relational Database Management SystemRdms-Relational Database Management System
Rdms-Relational Database Management System
 
Ch1- Introduction to dbms
Ch1- Introduction to dbmsCh1- Introduction to dbms
Ch1- Introduction to dbms
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
data base management system (DBMS)
data base management system (DBMS)data base management system (DBMS)
data base management system (DBMS)
 
Bca examination 2017 dbms
Bca examination 2017 dbmsBca examination 2017 dbms
Bca examination 2017 dbms
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)
 
Database Management System, Lecture-1
Database Management System, Lecture-1Database Management System, Lecture-1
Database Management System, Lecture-1
 
DBMS - Introduction
DBMS - IntroductionDBMS - Introduction
DBMS - Introduction
 
Lecture 3 note.pptx
Lecture 3 note.pptxLecture 3 note.pptx
Lecture 3 note.pptx
 
D B M S Animate
D B M S AnimateD B M S Animate
D B M S Animate
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Lecture 1 to 3intro to normalization in database
Lecture 1 to 3intro to  normalization in databaseLecture 1 to 3intro to  normalization in database
Lecture 1 to 3intro to normalization in database
 
COMPUTERS Database
COMPUTERS Database COMPUTERS Database
COMPUTERS Database
 
database
databasedatabase
database
 
Ch1
Ch1Ch1
Ch1
 
Ch1
Ch1Ch1
Ch1
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
 
dbms notes.ppt
dbms notes.pptdbms notes.ppt
dbms notes.ppt
 

More from argusacademy

Css & dhtml
Css  & dhtmlCss  & dhtml
Css & dhtml
argusacademy
 
Html table
Html tableHtml table
Html table
argusacademy
 
Html ordered & unordered list
Html ordered & unordered listHtml ordered & unordered list
Html ordered & unordered list
argusacademy
 
Html level ii
Html level  iiHtml level  ii
Html level ii
argusacademy
 
Html frame
Html frameHtml frame
Html frame
argusacademy
 
Html forms
Html formsHtml forms
Html forms
argusacademy
 
Html creating page link or hyperlink
Html creating page link or hyperlinkHtml creating page link or hyperlink
Html creating page link or hyperlink
argusacademy
 
Html basic
Html basicHtml basic
Html basic
argusacademy
 
Php string
Php stringPhp string
Php string
argusacademy
 
Php session
Php sessionPhp session
Php session
argusacademy
 
Php oops1
Php oops1Php oops1
Php oops1
argusacademy
 
Php if else
Php if elsePhp if else
Php if else
argusacademy
 
Php creating forms
Php creating formsPhp creating forms
Php creating forms
argusacademy
 
Php create and invoke function
Php create and invoke functionPhp create and invoke function
Php create and invoke function
argusacademy
 
Php array
Php arrayPhp array
Php array
argusacademy
 
Sql query
Sql querySql query
Sql query
argusacademy
 
Oracle
OracleOracle
Oracle
argusacademy
 
Vb.net iv
Vb.net ivVb.net iv
Vb.net iv
argusacademy
 
Vb.net iii
Vb.net iiiVb.net iii
Vb.net iii
argusacademy
 
Vb.net ii
Vb.net iiVb.net ii
Vb.net ii
argusacademy
 

More from argusacademy (20)

Css & dhtml
Css  & dhtmlCss  & dhtml
Css & dhtml
 
Html table
Html tableHtml table
Html table
 
Html ordered & unordered list
Html ordered & unordered listHtml ordered & unordered list
Html ordered & unordered list
 
Html level ii
Html level  iiHtml level  ii
Html level ii
 
Html frame
Html frameHtml frame
Html frame
 
Html forms
Html formsHtml forms
Html forms
 
Html creating page link or hyperlink
Html creating page link or hyperlinkHtml creating page link or hyperlink
Html creating page link or hyperlink
 
Html basic
Html basicHtml basic
Html basic
 
Php string
Php stringPhp string
Php string
 
Php session
Php sessionPhp session
Php session
 
Php oops1
Php oops1Php oops1
Php oops1
 
Php if else
Php if elsePhp if else
Php if else
 
Php creating forms
Php creating formsPhp creating forms
Php creating forms
 
Php create and invoke function
Php create and invoke functionPhp create and invoke function
Php create and invoke function
 
Php array
Php arrayPhp array
Php array
 
Sql query
Sql querySql query
Sql query
 
Oracle
OracleOracle
Oracle
 
Vb.net iv
Vb.net ivVb.net iv
Vb.net iv
 
Vb.net iii
Vb.net iiiVb.net iii
Vb.net iii
 
Vb.net ii
Vb.net iiVb.net ii
Vb.net ii
 

Recently uploaded

Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
AzmatAli747758
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
Celine George
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
Excellence Foundation for South Sudan
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
Fundacja Rozwoju Społeczeństwa Przedsiębiorczego
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
Nguyen Thanh Tu Collection
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 

Recently uploaded (20)

Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...Cambridge International AS  A Level Biology Coursebook - EBook (MaryFosbery J...
Cambridge International AS A Level Biology Coursebook - EBook (MaryFosbery J...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
How to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS ModuleHow to Split Bills in the Odoo 17 POS Module
How to Split Bills in the Odoo 17 POS Module
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
Introduction to Quality Improvement Essentials
Introduction to Quality Improvement EssentialsIntroduction to Quality Improvement Essentials
Introduction to Quality Improvement Essentials
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdfESC Beyond Borders _From EU to You_ InfoPack general.pdf
ESC Beyond Borders _From EU to You_ InfoPack general.pdf
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 

Rdbms

  • 2. Relational Database Management System DATA DATABASE DBMS/RDBMS Information
  • 3. File Processing System Database (Information in Files Format) Application Programs (Programs Written in C Pascal etc.) File System (Data Structure File Handling)
  • 4. Disadvantages of FPS Data Redundancy and Inconsistency  Difficulty in accessing data Data isolation Integrity Problems Atomicity Problems Concurrent-access anomalies Security Problems
  • 5. Data Redundancy and Inconsistency Name Address ABC Bhiwani DEF Delhi AccNo Name Address 1002 ABC Bhiwani 1005 DEF Jaipur Customer Information Saving Account
  • 6. Difficulty in accessing data Application Programs (Programs Written in C Pascal etc.) File System (Data Structure File Handling) Database (Information Storage in Files Format) Manager Requirement
  • 7. Requirements of a DBMS • A mechanism for specification of data and its dependencies (Integrity Constraints) in an integrated fashion. • Prevention of redundancy and inconsistency. • Provision of adequate security and access-rights. • Mechanism for concurrency control. • Mechanism for recovery from failure. Additionally any DBMS must provide • Schemes for specification of procession rules or application Programs. • Efficient techniques for storage and retrieval of data from the secondary
  • 8. D B M S File Manager Secondary Storage A DBMS has two major components, namely Structure of Database is called Database Schema. Instance, which is a state of the database with the actual data loaded. A set of software tools/programs which access, update and process the database, called the query and update-mechanism.
  • 9. Data Independence The ability to modify a schema definition in one level without affecting a schema definition in the next higher level is called data independence. Physical data independence Logical data independence Create table emp (empno number(10),------,-- ------);
  • 10. Data Models A Data Model is a mechanism for describing the data, their interrelationships and the constraints. Object-based Conceptual models. Entity-Relationship model Record-based models. Relational Model Network Model Hierarchical Model Physical data models.
  • 11. The E-R Model Entities : An entity is a distinct clearly identifiable object of the database e.g Book Attribute : Each Entity is characterized by a set of attributes e.g. Acc.No. Entity Set : Set of all entities having attributes of the same type. Relationships : A relationship is a mapping between entity sets. Acc_No Title Acc_No Card_No Name Book Borrowed_By USERS ____
  • 12. Hierarchical Model This is special kind of a network model where the relationship is essentially a tree-like structure. Hospital Wards Units Patient Doctors Nurses Cardiology Skin
  • 13. Physical Data Models Physical data models are used to describe data at the lowest level. In contrast to logical data models, there are few physical data models In use. Two of the widely known ones are the Unifying model and frame-Memory model. Database Languages Database Languages Data-Definition Data-Manipulation Data-Control Create Table Test ( Title Varchar2(20), -------- ,-------); Update Insert Delete Query GRANT Connect, Resource TO x User
  • 14.
  • 15. Database Administrator Roles of DBA • Schema Definition • Storage structure and access-method definition • Schema and Physical-organization modification • Granting of authorization for data access • Integrity-constraint specification Terms • Simple and Composite Attributes • Single-valued and Multivalued Attributes • Null Attributes • Derived Attributes • Existence Dependencies •Weak Entity Set and Strong Entity Set
  • 17.
  • 18. Keys Keys Candidate Key Secondary Key Foreign Key Primary Key Alternate Key Composite Key
  • 19. Mapping Cardinalities Mapping cardinalities, or cardinality ratios, express the number of entities to which another entity can be associated via a relationship set. For a binary relationship set R between entity sets A and B, the mapping Cardinality must be one of the following A B A B One to One One to Many
  • 20. A B A B Many to One Many to Many
  • 21. More on E-R Diagrams Company Owns Multiple Relationships between Leased Same entity set Vehicle Manager Staff Reports to Subordinate Circular Relationship
  • 22.
  • 23.
  • 24.
  • 26.
  • 27.
  • 28. The Relational Algebra The relational algebra is a procedural query language. Fundamental Operations select (unary) project (unary) rename (unary) Fundamental Operations cartesian product (binary) union (binary) set-difference (binary) Several other operations, dened in terms of the fundamental operations: set-intersection natural join division assignment Operations produce a new relation as a result.
  • 29. Formal Definition of Relational Algebra
  • 33. The Union Operation The Set Difference Operation
  • 34. Relational Calculus Relational Calculus is a nonprocedural Query language Tuple Relational Calculus Uses Tuple variables which take values of an entire tuple Domain Relational Calculus Uses Domain variables which takes values from an attribute
  • 36. Normalization Normalization is a process of removing redundancy using functional Dependencies. To reduce redundancy it is necessary to decompose a relation into a number of smaller relations. There are several normal Forms. -First Normal Form (1 NF) -Second Normal Form (2 NF) -Third Normal Form(3 NF) -Boyce-Codd Normal Form (BCNF)
  • 37. First Normal Form (1NF) This normal form says that all attributes are simple. An attribute is said to be simple if it does not contain any subparts. An attributes which contains subparts is called complex attributes. F_name L_name C_addr City State Zip Name
  • 38. Second Normal Form (2NF) A relation is said to be in 2NF if it is in 1NF and All non-prime attributes are fully functionally dependent on candidate key Consider a relation savings_deposit having the fol owing structure:- Saving_deposit (name, addr, acc_no, amt ) With the fol owing FDs : name Add name, acc_no addr Here [name, acc_no ] is the candidate key and addr and amt are the non prime attributes. Among the non-prime attributes amt depends on [name, acc_no ] whereas addr depends on name only. Note that due to FD name Address causing redundancy. addr every tuple with the same name will contain the same This redundancy arises because a non-prime attribute like address is dependent on an attribute
  • 39. Third Normal Form (3NF) A relation is said to be in 3NF and non-prime attributes are not dependent On each other. Consider the relation – s_by ( s_name, item, price, gift_item ) With FDs s_name, item price Price gift_item Here al prime attributes are ful y functional dependent on candidate keys, the Non-prime attribute gift-item is also ful y functional dependent on the non-prime Attribute price. This create redundancy because every price value there is a fixed Gift item. We shal have to impose the additional restriction that no non-prime attribute can Be functional y dependent on another non-prime attributes.