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

More Related Content

DOCX
PPTX
Normal forms
PDF
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
PPT
Databases: Normalisation
PPTX
Dbms normalization
PPTX
Aggregate function
PDF
Sql commands
PPTX
Logical database design and the relational model(database)
Normal forms
Normalization | (1NF) |(2NF) (3NF)|BCNF| 4NF |5NF
Databases: Normalisation
Dbms normalization
Aggregate function
Sql commands
Logical database design and the relational model(database)

What's hot (20)

PPT
D B M S Animate
PPT
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
PPTX
SQL Commands
PDF
View & index in SQL
PPTX
Unit 5 composite datatypes
PPTX
Sql Constraints
PPTX
Arp (address resolution protocol)
PPT
Chapter 23
PDF
MS-SQL SERVER ARCHITECTURE
PDF
Database Normalization
PPTX
two tier and three tier
PPT
11. Storage and File Structure in DBMS
PPTX
Integrity Constraints
PPT
Lossless decomposition
PPT
Ch2 network models
PDF
File based approach
PPTX
Basic SQL and History
PPTX
Normalization in a Database
PPTX
Computer Network - Network Layer
D B M S Animate
Forouzan-ch19-Network-Layer-Logical-Addressing.ppt
SQL Commands
View & index in SQL
Unit 5 composite datatypes
Sql Constraints
Arp (address resolution protocol)
Chapter 23
MS-SQL SERVER ARCHITECTURE
Database Normalization
two tier and three tier
11. Storage and File Structure in DBMS
Integrity Constraints
Lossless decomposition
Ch2 network models
File based approach
Basic SQL and History
Normalization in a Database
Computer Network - Network Layer
Ad

Similar to DBMS - Relational Model (20)

DOC
Dbms new manual
PPTX
Accounting Information System Related Data.pptx
PPTX
PPT_DBMS.pptx
PPT
DBMS topic in PU
PDF
Database_Concepts_Final.pptx.pdf for class 12
PPTX
codd rules of dbms given by E F codd who is called father of dbms
PPTX
Codds rules & keys
PDF
Basics of DBMS - Traditional File System
PPTX
DBMS (1).pptx
PPTX
Databases and its representation
PDF
Database Concepts & SQL(1).pdf
PDF
CBSE XII Database Concepts And MySQL Presentation
PPTX
RDBMS to NoSQL. An overview.
PPTX
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
PPT
joijoiiiiiiiiiiiiiiiiiiiiijoijiojoijoijoijoij
PDF
ITB - UNIT 3.pdf
PPTX
Lecture 2 - Database Management System.pptx
PDF
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
PPTX
Chapter 7 Basic Data Storage.pptx
PPT
DBMS-Week-2about hardware and software.PPT
Dbms new manual
Accounting Information System Related Data.pptx
PPT_DBMS.pptx
DBMS topic in PU
Database_Concepts_Final.pptx.pdf for class 12
codd rules of dbms given by E F codd who is called father of dbms
Codds rules & keys
Basics of DBMS - Traditional File System
DBMS (1).pptx
Databases and its representation
Database Concepts & SQL(1).pdf
CBSE XII Database Concepts And MySQL Presentation
RDBMS to NoSQL. An overview.
IET MySQL PPT Ver9ZESXRDCTFYVGBUHNIJOMK.pptx
joijoiiiiiiiiiiiiiiiiiiiiijoijiojoijoijoijoij
ITB - UNIT 3.pdf
Lecture 2 - Database Management System.pptx
ppt_rdbms.pdfuvuguvuvugycycyctcucuvyvvuvuvy
Chapter 7 Basic Data Storage.pptx
DBMS-Week-2about hardware and software.PPT
Ad

Recently uploaded (20)

PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
PDF
Nidhal Samdaie CV - International Business Consultant
PDF
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
PPTX
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
PDF
WRN_Investor_Presentation_August 2025.pdf
PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PDF
Unit 1 Cost Accounting - Cost sheet
PPTX
Lecture (1)-Introduction.pptx business communication
PDF
Laughter Yoga Basic Learning Workshop Manual
PPTX
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
DOCX
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
PPT
Data mining for business intelligence ch04 sharda
PDF
Chapter 5_Foreign Exchange Market in .pdf
PDF
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
PDF
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
PPTX
Amazon (Business Studies) management studies
PPTX
ICG2025_ICG 6th steering committee 30-8-24.pptx
PDF
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
PDF
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider
DOC-20250806-WA0002._20250806_112011_0000.pdf
Nidhal Samdaie CV - International Business Consultant
20250805_A. Stotz All Weather Strategy - Performance review July 2025.pdf
Dragon_Fruit_Cultivation_in Nepal ppt.pptx
WRN_Investor_Presentation_August 2025.pdf
340036916-American-Literature-Literary-Period-Overview.ppt
Unit 1 Cost Accounting - Cost sheet
Lecture (1)-Introduction.pptx business communication
Laughter Yoga Basic Learning Workshop Manual
CkgxkgxydkydyldylydlydyldlyddolydyoyyU2.pptx
unit 2 cost accounting- Tender and Quotation & Reconciliation Statement
Data mining for business intelligence ch04 sharda
Chapter 5_Foreign Exchange Market in .pdf
Elevate Cleaning Efficiency Using Tallfly Hair Remover Roller Factory Expertise
Solara Labs: Empowering Health through Innovative Nutraceutical Solutions
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
Amazon (Business Studies) management studies
ICG2025_ICG 6th steering committee 30-8-24.pptx
Outsourced Audit & Assurance in USA Why Globus Finanza is Your Trusted Choice
SIMNET Inc – 2023’s Most Trusted IT Services & Solution Provider

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