SlideShare a Scribd company logo
Presented by – Ovais Bin Imtiaz, MFC(P)
DBMS – Relational Model
Presented by – Ovais Bin Imtiaz, MFC(P)
Some Basic Terms
1. Data :- Data are raw facts. The word raw indicates that
the facts are unprocessed and doesn’t have meaning.
It is used as input.
2. Information :- It’s meaningful form of data. Information
is the result of processing raw data to reveal it’s
meaning.
3. Database :- A collection of inter related data is called
database.
• A database is a shared , integrated computer structure
that store a collection of end-user data and metadata.
• A database can be of any size and complexity.
• A database may be generated and maintained
manually or it may be computerized.
Presented by – Ovais Bin Imtiaz, MFC(P)
4. Bit :- A single binary digit (0 or 1).
5. Character :- Multiple related bits are combined to form a character.
6. Field :- A character or group of characters that has a specific meaning.
A filed is used to define and store data.
7. Record :- A logically connected set of one or more fields that
describes a person, place, or thing.
8. File :- A collection of related record.
9. Schema :- Description of a database.
10. Instance :- Overall information stored in a database at a particular
moment is called the instance of the database.
Presented by – Ovais Bin Imtiaz, MFC(P)
11. DBMS :- A Database Management System is a
collection of programs that manage the database
structure and controls access to the data stored in the
database
Its allows to
• create databases;
• insert , update and delete data;
• sort and query data;
• create form and reports.
Examples of DBMS – Oracle, MySQL, SQLite, DB2 and
MS Access
Presented by – Ovais Bin Imtiaz, MFC(P)
 Improved Data Sharing
 Improved Data security
 Minimized data inconsistency
 Improved Data Access
 Improved decision making
 Increased end-user productivity .
 Reduce application development time
Role and Advantages of DBMS
Presented by – Ovais Bin Imtiaz, MFC(P)
 Railway Reservation
 Library Management System
 Banking
 Schools and colleges
 Social media sites
 Telecommunication
 Finance
 Online shopping
Applications of DBMS
Presented by – Ovais Bin Imtiaz, MFC(P)
What does Database Model mean?
A database model is a type of data model that determines the logical
structure of a database and functionally determines in which manner
data can be stored, organized and manipulated.
A database model :-
 shows the logical structure of a database;
 describe the relationships between different parts of the data;
 serves as blueprint for application developers and database
administrators in creating a database
Presented by – Ovais Bin Imtiaz, MFC(P)
STUDENT
ROLL_NO NAME ADDRESS PHONE AGE
1 RAM DELHI 9455123451 18
2 RAMESH GURGAON 9652431543 18
3 SUJIT ROHTAK 9156253131 20
4 SURESH DELHI 9156243131 18
Relational Model was proposed by E.F. Codd in 1970 to model
data in the form of relations or tables.
Relational Model represents how data is stored in Relational
Databases. A relational database stores data in the form of
relations.
Relational Model of DBMS
Example :-
Presented by – Ovais Bin Imtiaz, MFC(P)
Codd rules were proposed by E.F. Codd which should be satisfied by relational model.
1. Information Rule: Data stored in Relational model must be a value of some cell of a
table.
2. Guaranteed Access Rule: Every data element must be accessible by table name, its
primary key and name of attribute whose value is to be determined.
3. Systematic Treatment of NULL values: NULL value in database must only
correspond to missing, unknown or not applicable values.
4. Active Online Catalog: Structure of database must be stored in an online catalog
which can be queried by authorized users.
5. Comprehensive Data Sub-language Rule: A database should be accessible by a
language supported for definition, manipulation and transaction management
operation.
6. View Updating Rule: Different views created for various purposes should be
automatically updatable by the system.
7. High level insert, update and delete rule: Relational Model should support insert,
delete, update etc. operations at each level of relations. Also, set operations like
Union, Intersection and minus should be supported.
Codd Rules
Presented by – Ovais Bin Imtiaz, MFC(P)
8. Physical data independence: Any modification in the physical location of a
table should not enforce modification at application level.
9. Logical data independence: Any modification in logical or conceptual schema
of a table should not enforce modification at application level. For example,
merging of two tables into one should not affect application accessing it which
is difficult to achieve.
10. Integrity Independence: Integrity constraints modified at database level should
not enforce modification at application level.
11. Distribution Independence: Distribution of data over various locations should
not be visible to end-users.
12. Non-Subversion Rule: Low level access to data should not be able to bypass
integrity rule to change data.
Presented by – Ovais Bin Imtiaz, MFC(P)
An anomaly is an irregularity, or something which deviates from the expected
or normal state. When designing databases, we identify three types of
anomalies: Insert, Update and Delete.
Anomalies in Relational Model
STUDENT
ROLL_NO NAME ADDRESS PHONE AGE
BRANCH
_CODE
1 RAM DELHI 9455123451 18 CS
2 RAMESH GURGAON 9652431543 18 CS
3 SUJIT ROHTAK 9156253131 20 ECE
4 SURESH DELHI 9156243131 18 IT
BRANCH
BRANCH_CO
DE BRANCH_NAME
CS
COMPUTER
SCIENCE
IT
INFORMATION
TECHNOLOGY
ECE
ELECTRONICS
AND
COMMUNICATION
ENGINEERING
CV
CIVIL
ENGINEERING
Presented by – Ovais Bin Imtiaz, MFC(P)
Insertion Anomaly in Referencing Relation:
Insertion of a student with BRANCH_CODE ‘ME’ in STUDENT relation will result
in error because ‘ME’ is not present in BRANCH_CODE of BRANCH.
Deletion/ Updation Anomaly in Referenced Relation:
If we try to delete tuple from BRANCH having BRANCH_CODE ‘CS’, it will result
in error because ‘CS’ is referenced by BRANCH_CODE of STUDENT, but if we try
to delete the row from BRANCH with BRANCH_CODE CV, it will be deleted as
the value is not been used by referencing relation. It can be handled by
following method:
ON DELETE CASCADE: It will delete the tuples from REFERENCING RELATION
if value used by REFERENCING ATTRIBUTE is deleted from REFERENCED
RELATION. e.g., if we delete a row from BRANCH with BRANCH_CODE ‘CS’, the
rows in STUDENT relation with BRANCH_CODE CS (ROLL_NO 1 and 2 in this
case) will be deleted.
ON UPDATE CASCADE: It will update the REFERENCING ATTRIBUTE in
REFERENCING RELATION if attribute value used by REFERENCING ATTRIBUTE is
updated in REFERENCED RELATION. e.g., if we update a row from BRANCH with
BRANCH_CODE ‘CS’ to ‘CSE’, the rows in STUDENT relation with BRANCH_CODE
CS (ROLL_NO 1 and 2 in this case) will be updated with BRANCH_CODE ‘CSE’.
Presented by – Ovais Bin Imtiaz, MFC(P)
1. Super key :- An attribute that uniquely identifies each row in a
table. E.g. :- customer name and customer id.
2. Candidate key :- A minimal super key. A super key that does not
contain a subset of attributes that is itself a super key. E.g. :-
customer id
3. Primary Key :- A candidate key selected to uniquely identify all
other attribute values in any given row. Cannot contain null
entries
4. Unique Key :- A candidate key selected to uniquely identify all
other attribute values in any given row. Can accept unique or
null values
5. Foreign key :- An attribute in one table whose values must
either match the primary key in another table or be null.
Types of Keys in Relational Model
Presented by – Ovais Bin Imtiaz, MFC(P)
Advantages of Relational Model
Structural independence: In relational model, changes in the database
structure do not affect the data access.
Conceptual simplicity: Since the relational data model frees the designer from
the physical data storage details, the designers can concentrate on the logical
view of the database.
Design, implementation, maintenance and usage ease: The relational
database model achieves both data independence and structure
independence making the database design, maintenance, administration and
usage much easier than the other models.
Ad hoc query capability: The query language of the relational database models
structured query language or SQL makes ad hoc queries a reality. Using SQL the
users can specify what information they want and leave the details of how to
get the information to the database.
Presented by – Ovais Bin Imtiaz, MFC(P)
Disadvantages of Relational Model
Hardware overheads: For making things easier for the users, the relational
database systems need more powerful hardware computers and data storage
devices. So, the RDBMS needs powerful machines to run smoothly.
Ease of design can lead to bad design: The users need not know the complex
details of physical data storage. They need not know how the data is actually
stored to access it. This ease of design and use can lead to the development
and implementation of very poorly designed database management systems.
'Information island' phenomenon: As we have said before, the relational
database systems are easy to implement and use. This will create a situation
where too many people or departments will create their own databases and
applications.
Presented by – Ovais Bin Imtiaz, MFC(P)
Thanks
Ad

More Related Content

What's hot (20)

Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)
Syed Hassan Ali
 
Database administrator
Database administratorDatabase administrator
Database administrator
Tech_MX
 
Object oriented database
Object oriented databaseObject oriented database
Object oriented database
Md. Hasan Imam Bijoy
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
Megha yadav
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL Databases
Abiral Gautam
 
Dbms database models
Dbms database modelsDbms database models
Dbms database models
sanjeev kumar suman
 
Sql fundamentals
Sql fundamentalsSql fundamentals
Sql fundamentals
Ravinder Kamboj
 
Rdbms
RdbmsRdbms
Rdbms
rdbms
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
HoneySah
 
Data Models
Data ModelsData Models
Data Models
RituBhargava7
 
Dbms
DbmsDbms
Dbms
Rupali Salunkhe
 
Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
Database Triggers
Database TriggersDatabase Triggers
Database Triggers
Aliya Saldanha
 
Sql subquery
Sql  subquerySql  subquery
Sql subquery
Raveena Thakur
 
The database applications
The database applicationsThe database applications
The database applications
Dolat Ram
 
Relational model
Relational modelRelational model
Relational model
Dabbal Singh Mahara
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Data models
Data modelsData models
Data models
Usman Tariq
 
Types Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql ServerTypes Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql Server
programmings guru
 
Object Oriented Dbms
Object Oriented DbmsObject Oriented Dbms
Object Oriented Dbms
maryeem
 
Structured Query Language (SQL)
Structured Query Language (SQL)Structured Query Language (SQL)
Structured Query Language (SQL)
Syed Hassan Ali
 
Database administrator
Database administratorDatabase administrator
Database administrator
Tech_MX
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
Megha yadav
 
Presentation On NoSQL Databases
Presentation On NoSQL DatabasesPresentation On NoSQL Databases
Presentation On NoSQL Databases
Abiral Gautam
 
Rdbms
RdbmsRdbms
Rdbms
rdbms
 
Lecture 11 - distributed database
Lecture 11 - distributed databaseLecture 11 - distributed database
Lecture 11 - distributed database
HoneySah
 
Database architecture
Database architectureDatabase architecture
Database architecture
VENNILAV6
 
The database applications
The database applicationsThe database applications
The database applications
Dolat Ram
 
Week 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data ModelingWeek 3 Classification of Database Management Systems & Data Modeling
Week 3 Classification of Database Management Systems & Data Modeling
oudesign
 
Types Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql ServerTypes Of Join In Sql Server - Join With Example In Sql Server
Types Of Join In Sql Server - Join With Example In Sql Server
programmings guru
 

Similar to DBMS - Relational Model (20)

Dbms Useful PPT
Dbms Useful PPTDbms Useful PPT
Dbms Useful PPT
Krishna Bashyal
 
Unit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptxUnit-I_dbms_TT_Final.pptx
Unit-I_dbms_TT_Final.pptx
UnknownUnknown252665
 
Abhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsxAbhishek_DBMS-ch1_Database_management.ppsx
Abhishek_DBMS-ch1_Database_management.ppsx
SANJEETKUMAR378234
 
Data Base
Data BaseData Base
Data Base
Susan Tullis
 
1_Prelim-Module-IM101 ADVANCE DATABASE SYSTEM
1_Prelim-Module-IM101 ADVANCE DATABASE SYSTEM1_Prelim-Module-IM101 ADVANCE DATABASE SYSTEM
1_Prelim-Module-IM101 ADVANCE DATABASE SYSTEM
jessabelalancado
 
Dbms and it infrastructure
Dbms and  it infrastructureDbms and  it infrastructure
Dbms and it infrastructure
projectandppt
 
unit 1.pdf
unit 1.pdfunit 1.pdf
unit 1.pdf
AbhishekSingh757567
 
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
 
Mi0034 –database management systems
Mi0034 –database management systemsMi0034 –database management systems
Mi0034 –database management systems
smumbahelp
 
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
Raj vardhan
 
Ch1
Ch1Ch1
Ch1
guest5c197d5
 
Ch1 2
Ch1 2Ch1 2
Ch1 2
Bibin Devadas
 
Ch1
Ch1Ch1
Ch1
CAG
 
1. Introduction to DBMS
1. Introduction to DBMS1. Introduction to DBMS
1. Introduction to DBMS
koolkampus
 
Dbms module i
Dbms module iDbms module i
Dbms module i
SANTOSH RATH
 
DBMS
DBMS DBMS
DBMS
addisonabner
 
DBMS and its Models
DBMS and its ModelsDBMS and its Models
DBMS and its Models
AhmadShah Sultani
 
Dbms
DbmsDbms
Dbms
saurav-IT
 
Dbms models
Dbms modelsDbms models
Dbms models
devgocool
 
Unit3rd
Unit3rdUnit3rd
Unit3rd
Anshumali Singh
 
Ad

Recently uploaded (20)

NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdfNewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
CGG Deck English - Apr 2025-edit (1).pptx
CGG Deck English - Apr 2025-edit (1).pptxCGG Deck English - Apr 2025-edit (1).pptx
CGG Deck English - Apr 2025-edit (1).pptx
China_Gold_International_Resources
 
The Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of HatsThe Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of Hats
nimrabilal030
 
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand AwarenessAlec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdfFrom Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
Insolation Energy
 
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
Kirill Klip
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
AlaskaSilver Corporate Presentation Apr 28 2025.pdf
AlaskaSilver Corporate Presentation Apr 28 2025.pdfAlaskaSilver Corporate Presentation Apr 28 2025.pdf
AlaskaSilver Corporate Presentation Apr 28 2025.pdf
Western Alaska Minerals Corp.
 
Treis & Friends One sheet - Portfolio IV
Treis & Friends One sheet - Portfolio IVTreis & Friends One sheet - Portfolio IV
Treis & Friends One sheet - Portfolio IV
aparicioregina7
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Lviv Startup Club
 
Influence of Career Development on Retention of Employees in Private Univers...
Influence of Career Development on Retention of  Employees in Private Univers...Influence of Career Development on Retention of  Employees in Private Univers...
Influence of Career Development on Retention of Employees in Private Univers...
publication11
 
India Advertising Market Size & Growth | Industry Trends
India Advertising Market Size & Growth | Industry TrendsIndia Advertising Market Size & Growth | Industry Trends
India Advertising Market Size & Growth | Industry Trends
Aman Bansal
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 
LDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts informationLDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts information
LDM Mia eStudios
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
TheoRuby
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Affinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing PresentationAffinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing Presentation
omiller199514
 
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdfNewBase 05 May 2025  Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
NewBase 05 May 2025 Energy News issue - 1785 by Khaled Al Awadi_compressed.pdf
Khaled Al Awadi
 
The Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of HatsThe Fascinating World of Hats: A Brief History of Hats
The Fascinating World of Hats: A Brief History of Hats
nimrabilal030
 
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand AwarenessAlec Lawler - A Passion For Building Brand Awareness
Alec Lawler - A Passion For Building Brand Awareness
Alec Lawler
 
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...NewBase 28 April 2025  Energy News issue - 1783 by Khaled Al Awadi_compressed...
NewBase 28 April 2025 Energy News issue - 1783 by Khaled Al Awadi_compressed...
Khaled Al Awadi
 
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdfFrom Sunlight to Savings The Rise of Homegrown Solar Power.pdf
From Sunlight to Savings The Rise of Homegrown Solar Power.pdf
Insolation Energy
 
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
TNR Gold Investor Summary - Building The Green Energy Metals Royalty and Gold...
Kirill Klip
 
waterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docxwaterBeta white paper - 250202- two-column.docx
waterBeta white paper - 250202- two-column.docx
Peter Adriaens
 
Treis & Friends One sheet - Portfolio IV
Treis & Friends One sheet - Portfolio IVTreis & Friends One sheet - Portfolio IV
Treis & Friends One sheet - Portfolio IV
aparicioregina7
 
The Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdfThe Peter Cowley Entrepreneurship Event Master 30th.pdf
The Peter Cowley Entrepreneurship Event Master 30th.pdf
Richard Lucas
 
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Yuriy Chapran: Zero Trust and Beyond: OpenVPN’s Role in Next-Gen Network Secu...
Lviv Startup Club
 
Influence of Career Development on Retention of Employees in Private Univers...
Influence of Career Development on Retention of  Employees in Private Univers...Influence of Career Development on Retention of  Employees in Private Univers...
Influence of Career Development on Retention of Employees in Private Univers...
publication11
 
India Advertising Market Size & Growth | Industry Trends
India Advertising Market Size & Growth | Industry TrendsIndia Advertising Market Size & Growth | Industry Trends
India Advertising Market Size & Growth | Industry Trends
Aman Bansal
 
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdfAccounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
Accounting_Basics_Complete_Guide_By_CA_Suvidha_Chaplot (1).pdf
CA Suvidha Chaplot
 
LDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts informationLDMMIA Bday celebration 2025 Gifts information
LDMMIA Bday celebration 2025 Gifts information
LDM Mia eStudios
 
Strategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptxStrategic Enterprise Management - Unit I.pptx
Strategic Enterprise Management - Unit I.pptx
PrekshyaRana
 
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
Web Design Creating User-Friendly and Visually Engaging Websites - April 2025...
TheoRuby
 
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
The Rise of Payroll Outsourcing in the UK: Key Statistics for 2025
QX Accounting Services Ltd
 
Affinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing PresentationAffinity.co Lifecycle Marketing Presentation
Affinity.co Lifecycle Marketing Presentation
omiller199514
 
Ad

DBMS - Relational Model

  • 1. Presented by – Ovais Bin Imtiaz, MFC(P) DBMS – Relational Model
  • 2. Presented by – Ovais Bin Imtiaz, MFC(P) Some Basic Terms 1. Data :- Data are raw facts. The word raw indicates that the facts are unprocessed and doesn’t have meaning. It is used as input. 2. Information :- It’s meaningful form of data. Information is the result of processing raw data to reveal it’s meaning. 3. Database :- A collection of inter related data is called database. • A database is a shared , integrated computer structure that store a collection of end-user data and metadata. • A database can be of any size and complexity. • A database may be generated and maintained manually or it may be computerized.
  • 3. Presented by – Ovais Bin Imtiaz, MFC(P) 4. Bit :- A single binary digit (0 or 1). 5. Character :- Multiple related bits are combined to form a character. 6. Field :- A character or group of characters that has a specific meaning. A filed is used to define and store data. 7. Record :- A logically connected set of one or more fields that describes a person, place, or thing. 8. File :- A collection of related record. 9. Schema :- Description of a database. 10. Instance :- Overall information stored in a database at a particular moment is called the instance of the database.
  • 4. Presented by – Ovais Bin Imtiaz, MFC(P) 11. DBMS :- A Database Management System is a collection of programs that manage the database structure and controls access to the data stored in the database Its allows to • create databases; • insert , update and delete data; • sort and query data; • create form and reports. Examples of DBMS – Oracle, MySQL, SQLite, DB2 and MS Access
  • 5. Presented by – Ovais Bin Imtiaz, MFC(P)  Improved Data Sharing  Improved Data security  Minimized data inconsistency  Improved Data Access  Improved decision making  Increased end-user productivity .  Reduce application development time Role and Advantages of DBMS
  • 6. Presented by – Ovais Bin Imtiaz, MFC(P)  Railway Reservation  Library Management System  Banking  Schools and colleges  Social media sites  Telecommunication  Finance  Online shopping Applications of DBMS
  • 7. Presented by – Ovais Bin Imtiaz, MFC(P) What does Database Model mean? A database model is a type of data model that determines the logical structure of a database and functionally determines in which manner data can be stored, organized and manipulated. A database model :-  shows the logical structure of a database;  describe the relationships between different parts of the data;  serves as blueprint for application developers and database administrators in creating a database
  • 8. Presented by – Ovais Bin Imtiaz, MFC(P) STUDENT ROLL_NO NAME ADDRESS PHONE AGE 1 RAM DELHI 9455123451 18 2 RAMESH GURGAON 9652431543 18 3 SUJIT ROHTAK 9156253131 20 4 SURESH DELHI 9156243131 18 Relational Model was proposed by E.F. Codd in 1970 to model data in the form of relations or tables. Relational Model represents how data is stored in Relational Databases. A relational database stores data in the form of relations. Relational Model of DBMS Example :-
  • 9. Presented by – Ovais Bin Imtiaz, MFC(P) Codd rules were proposed by E.F. Codd which should be satisfied by relational model. 1. Information Rule: Data stored in Relational model must be a value of some cell of a table. 2. Guaranteed Access Rule: Every data element must be accessible by table name, its primary key and name of attribute whose value is to be determined. 3. Systematic Treatment of NULL values: NULL value in database must only correspond to missing, unknown or not applicable values. 4. Active Online Catalog: Structure of database must be stored in an online catalog which can be queried by authorized users. 5. Comprehensive Data Sub-language Rule: A database should be accessible by a language supported for definition, manipulation and transaction management operation. 6. View Updating Rule: Different views created for various purposes should be automatically updatable by the system. 7. High level insert, update and delete rule: Relational Model should support insert, delete, update etc. operations at each level of relations. Also, set operations like Union, Intersection and minus should be supported. Codd Rules
  • 10. Presented by – Ovais Bin Imtiaz, MFC(P) 8. Physical data independence: Any modification in the physical location of a table should not enforce modification at application level. 9. Logical data independence: Any modification in logical or conceptual schema of a table should not enforce modification at application level. For example, merging of two tables into one should not affect application accessing it which is difficult to achieve. 10. Integrity Independence: Integrity constraints modified at database level should not enforce modification at application level. 11. Distribution Independence: Distribution of data over various locations should not be visible to end-users. 12. Non-Subversion Rule: Low level access to data should not be able to bypass integrity rule to change data.
  • 11. Presented by – Ovais Bin Imtiaz, MFC(P) An anomaly is an irregularity, or something which deviates from the expected or normal state. When designing databases, we identify three types of anomalies: Insert, Update and Delete. Anomalies in Relational Model STUDENT ROLL_NO NAME ADDRESS PHONE AGE BRANCH _CODE 1 RAM DELHI 9455123451 18 CS 2 RAMESH GURGAON 9652431543 18 CS 3 SUJIT ROHTAK 9156253131 20 ECE 4 SURESH DELHI 9156243131 18 IT BRANCH BRANCH_CO DE BRANCH_NAME CS COMPUTER SCIENCE IT INFORMATION TECHNOLOGY ECE ELECTRONICS AND COMMUNICATION ENGINEERING CV CIVIL ENGINEERING
  • 12. Presented by – Ovais Bin Imtiaz, MFC(P) Insertion Anomaly in Referencing Relation: Insertion of a student with BRANCH_CODE ‘ME’ in STUDENT relation will result in error because ‘ME’ is not present in BRANCH_CODE of BRANCH. Deletion/ Updation Anomaly in Referenced Relation: If we try to delete tuple from BRANCH having BRANCH_CODE ‘CS’, it will result in error because ‘CS’ is referenced by BRANCH_CODE of STUDENT, but if we try to delete the row from BRANCH with BRANCH_CODE CV, it will be deleted as the value is not been used by referencing relation. It can be handled by following method: ON DELETE CASCADE: It will delete the tuples from REFERENCING RELATION if value used by REFERENCING ATTRIBUTE is deleted from REFERENCED RELATION. e.g., if we delete a row from BRANCH with BRANCH_CODE ‘CS’, the rows in STUDENT relation with BRANCH_CODE CS (ROLL_NO 1 and 2 in this case) will be deleted. ON UPDATE CASCADE: It will update the REFERENCING ATTRIBUTE in REFERENCING RELATION if attribute value used by REFERENCING ATTRIBUTE is updated in REFERENCED RELATION. e.g., if we update a row from BRANCH with BRANCH_CODE ‘CS’ to ‘CSE’, the rows in STUDENT relation with BRANCH_CODE CS (ROLL_NO 1 and 2 in this case) will be updated with BRANCH_CODE ‘CSE’.
  • 13. Presented by – Ovais Bin Imtiaz, MFC(P) 1. Super key :- An attribute that uniquely identifies each row in a table. E.g. :- customer name and customer id. 2. Candidate key :- A minimal super key. A super key that does not contain a subset of attributes that is itself a super key. E.g. :- customer id 3. Primary Key :- A candidate key selected to uniquely identify all other attribute values in any given row. Cannot contain null entries 4. Unique Key :- A candidate key selected to uniquely identify all other attribute values in any given row. Can accept unique or null values 5. Foreign key :- An attribute in one table whose values must either match the primary key in another table or be null. Types of Keys in Relational Model
  • 14. Presented by – Ovais Bin Imtiaz, MFC(P) Advantages of Relational Model Structural independence: In relational model, changes in the database structure do not affect the data access. Conceptual simplicity: Since the relational data model frees the designer from the physical data storage details, the designers can concentrate on the logical view of the database. Design, implementation, maintenance and usage ease: The relational database model achieves both data independence and structure independence making the database design, maintenance, administration and usage much easier than the other models. Ad hoc query capability: The query language of the relational database models structured query language or SQL makes ad hoc queries a reality. Using SQL the users can specify what information they want and leave the details of how to get the information to the database.
  • 15. Presented by – Ovais Bin Imtiaz, MFC(P) Disadvantages of Relational Model Hardware overheads: For making things easier for the users, the relational database systems need more powerful hardware computers and data storage devices. So, the RDBMS needs powerful machines to run smoothly. Ease of design can lead to bad design: The users need not know the complex details of physical data storage. They need not know how the data is actually stored to access it. This ease of design and use can lead to the development and implementation of very poorly designed database management systems. 'Information island' phenomenon: As we have said before, the relational database systems are easy to implement and use. This will create a situation where too many people or departments will create their own databases and applications.
  • 16. Presented by – Ovais Bin Imtiaz, MFC(P) Thanks