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
Rdbms
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
Rdbms
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
Rdbms
Rdbms
Rdbms
Specialization & Generalization
Rdbms
Rdbms
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

PPT
Lecture 07 relational database management system
PPT
Rdbms
PPTX
Database : Relational Data Model
PPT
Dbms relational model
PPT
Ch 12 O O D B Dvlpt
PPTX
Logical database design and the relational model(database)
PPTX
Denormalization
PDF
Database Systems - Relational Data Model (Chapter 2)
Lecture 07 relational database management system
Rdbms
Database : Relational Data Model
Dbms relational model
Ch 12 O O D B Dvlpt
Logical database design and the relational model(database)
Denormalization
Database Systems - Relational Data Model (Chapter 2)

What's hot (20)

PPT
Ch 6 Logical D B Design
PPT
08. Object Oriented Database in DBMS
PDF
Chapter 3 Entity Relationship Model
PPTX
Relational Data Model Introduction
PPTX
DBMS - Relational Model
DOCX
The three level of data modeling
PDF
Chapter3 the relational data model and the relation database constraints part2
PPT
Object Oriented Dbms
PPT
Relational model
PPT
Ch 9 S Q L
PPT
Intro to relational model
PPTX
Relational model
PDF
Chapter 2 Relational Data Model-part1
PPTX
Dbms relational data model and sql queries
PPTX
Object oriented data model
PPTX
Fundamentals of database system - Relational data model and relational datab...
PPT
Dbms ii mca-ch3-er-model-2013
PPT
The Database Environment Chapter 14
PPT
OODM-object oriented data model
Ch 6 Logical D B Design
08. Object Oriented Database in DBMS
Chapter 3 Entity Relationship Model
Relational Data Model Introduction
DBMS - Relational Model
The three level of data modeling
Chapter3 the relational data model and the relation database constraints part2
Object Oriented Dbms
Relational model
Ch 9 S Q L
Intro to relational model
Relational model
Chapter 2 Relational Data Model-part1
Dbms relational data model and sql queries
Object oriented data model
Fundamentals of database system - Relational data model and relational datab...
Dbms ii mca-ch3-er-model-2013
The Database Environment Chapter 14
OODM-object oriented data model
Ad

Viewers also liked (20)

PPT
Basic DBMS ppt
PPT
Historical Evolution of RDBMS
PDF
NoSQL-Database-Concepts
PPSX
DISE - Database Concepts
PPT
Mis assignment (database)
PPSX
PPSX
Java script
PPSX
Virus examples
PPSX
VISUAL BASIC .net ii
PPSX
PPSX
VISUAL BASIC .net i
PPSX
Php basic
PPSX
Php opps
PPSX
Application software
PPSX
VISUAL BASIC .net vi
PPSX
TALLY Service tax & tds ENTRY
PPSX
COMPUTER Tips ‘n’ Tricks
PPSX
Computer development
PPSX
TALLY 1 st level entry
PPSX
TALLY Pos ENTRY
Basic DBMS ppt
Historical Evolution of RDBMS
NoSQL-Database-Concepts
DISE - Database Concepts
Mis assignment (database)
Java script
Virus examples
VISUAL BASIC .net ii
VISUAL BASIC .net i
Php basic
Php opps
Application software
VISUAL BASIC .net vi
TALLY Service tax & tds ENTRY
COMPUTER Tips ‘n’ Tricks
Computer development
TALLY 1 st level entry
TALLY Pos ENTRY
Ad

Similar to Rdbms (20)

PPTX
Rdms-Relational Database Management System
PPT
relational database
PPT
D B M S Animate
PPTX
DATABASE DESIGN.pptx
PDF
Relational data base management system (Unit 1)
PPT
DBMS unit 3.ppt semester 4 btech aktu 2024
DOCX
ICS Part 2 Computer Science Short Notes
PPTX
DATABASE MANAGEMENT SYSTEM
PPT
Dbms Lec Uog 02
PPTX
Download different material from slide share
DOCX
COMPUTERS Database
PPTX
PPT_DBMS.pptx
PPTX
Databases and its representation
PPT
DBMS-Week-2about hardware and software.PPT
PPTX
Module 3 Database systems for DIPLOMA.pptx
DOCX
Dbms Concepts
DOC
Dbms new manual
PPTX
DBMS (1).pptx
Rdms-Relational Database Management System
relational database
D B M S Animate
DATABASE DESIGN.pptx
Relational data base management system (Unit 1)
DBMS unit 3.ppt semester 4 btech aktu 2024
ICS Part 2 Computer Science Short Notes
DATABASE MANAGEMENT SYSTEM
Dbms Lec Uog 02
Download different material from slide share
COMPUTERS Database
PPT_DBMS.pptx
Databases and its representation
DBMS-Week-2about hardware and software.PPT
Module 3 Database systems for DIPLOMA.pptx
Dbms Concepts
Dbms new manual
DBMS (1).pptx

More from argusacademy (20)

PPSX
Css & dhtml
PPSX
Html table
PPSX
Html ordered & unordered list
PPSX
Html level ii
PPSX
Html frame
PPSX
Html forms
PPSX
Html creating page link or hyperlink
PPSX
Html basic
PPSX
Php string
PPSX
Php session
PPSX
Php oops1
PPSX
Php if else
PPSX
Php creating forms
PPSX
Php create and invoke function
PPSX
Php array
PPSX
Sql query
PDF
Oracle
PDF
Vb.net iv
PDF
Vb.net iii
PDF
Vb.net ii
Css & dhtml
Html table
Html ordered & unordered list
Html level ii
Html frame
Html forms
Html creating page link or hyperlink
Html basic
Php string
Php session
Php oops1
Php if else
Php creating forms
Php create and invoke function
Php array
Sql query
Oracle
Vb.net iv
Vb.net iii
Vb.net ii

Recently uploaded (20)

PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Environmental Education MCQ BD2EE - Share Source.pdf
PDF
advance database management system book.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
English Textual Question & Ans (12th Class).pdf
PDF
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
Journal of Dental Science - UDMY (2021).pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Core Concepts of Personalized Learning and Virtual Learning Environments
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
LIFE & LIVING TRILOGY - PART - (2) THE PURPOSE OF LIFE.pdf
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Environmental Education MCQ BD2EE - Share Source.pdf
advance database management system book.pdf
Hazard Identification & Risk Assessment .pdf
English Textual Question & Ans (12th Class).pdf
Mucosal Drug Delivery system_NDDS_BPHARMACY__SEM VII_PCI.pdf
What’s under the hood: Parsing standardized learning content for AI
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
Journal of Dental Science - UDMY (2021).pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
FOISHS ANNUAL IMPLEMENTATION PLAN 2025.pdf

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