SlideShare a Scribd company logo
1 of 23
PRESENTATION ON
Relational Database
&
Database Management System
Introduction to
Relational
Databases
SOME PRELIMINARIES
The theory taught in this part of the course was originally devised by Edgar
F. Codd in 1969. His seminal paper (1970) was entitled A Relational Model
of Data for Large Shared Data Banks.
We will use a language called Tutorial D for examples and exercises.
We will use Rel, an implementation of Tutorial D, for our on-line work.
WHAT IS A DATABASE?
An organised, machine-readable collection of
symbols, to be interpreted as a true account of some
enterprise.
Machine-updatable, too …
… so a database is also a collection of variables.
A database is typically available to a community of users,
with possibly varying requirements.
“ORGANISED COLLECTION
OF SYMBOLS”
StudentId Name CourseId
S1 Anne C1
S1 Anne C2
S2 Boris C1
S3 Cindy C3
For example:
The symbols are organised into rows and columns, thus forming a table.
One of the rows is different in kind from the others.
RELATIONAL
MODEL
RELATIONAL MODEL
RDBMS (Relational Database Management System)
external view
 The data are represented as a set of relations.
 A relation is a two-dimensional table.
This doesn’t mean that data are stored as tables;
the physical storage of the data is independent of
the way the data are logically organized.
Relation
 Name – each relation in a relational database should have a name that is
unique among other relations.
 Attribute – each column in a relation.
 The degree of the relation – the total number of attributes for a relation.
 Tuple – each row in a relation.
 The cardinality of the relation – the total number of rows in a relation.
OPERATIONS
ON
RELATIONS
OPERATIONS ON
RELATIONS
In a relational database, we can define several
operations to create new relations out of the existing
ones.
Basic operations:
 Insert
 Delete
 Update
 Select
 Project
 Join
 Union
 Intersection
 Difference
Insert operation
 An unary operation.
 Insert a new tuple into the relation.
Delete operation
 An unary operation.
 Delete a tuple defined by a criterion from the relation.
Update operation
 An unary operation.
 Changes the value of some attributes of a tuple.
Select operation
 An unary operation.
 It is applied to one single relation and creates another
relation.
 The tuples in the resulting relation are a subset of the tuples
in the original relation.
 Use some criteria to select
Project operation
 An unary operation.
 It is applied to one single relation and creates another
relation.
 The attributes in the resulting relation are a subset of the
attributes in the original relation.
Join operation
 A binary operation.
 Combines two relations based on common attributes.
Union operation
 A binary operation.
 Creates a new relation in which each tuple is either in the
first relation, in the second, or in both.
 The two relations must have the same attributes.
Intersection operation
 A binary operation.
 Creates a new relation in which each tuple is a member in
both relations.
 The two relations must have the same attributes.
Difference operation
 A binary operation.
 Creates a new relation in which each tuple is in the first
relation but not the second.
 The two relations must have the same attributes.
ONE-TO-ONE
RELATIONSHIP
Record 1
Record 2
Record 3
Record 4
Table A
Record 1
Record 2
Record 3
Record 4
Table B
ONE-TO-MANY
RELATIONSHIP
Record 1
Record 2
Record 3
Record 4
Table A
Record 1A
Record 1B
Record 1C
Record 2A
Record 2B
Record 3A
Record 3B
Record 3C
Record 3D
Record 4A
Record 4B
Table B
MANY TABLES CAN BE
LINKED
Table ATable B
Table C
Table D
Lookup
Table E
THANKS.!

More Related Content

What's hot

Lecture 03 data abstraction and er model
Lecture 03 data abstraction and er modelLecture 03 data abstraction and er model
Lecture 03 data abstraction and er model
emailharmeet
 
physical and logical data independence
physical and logical data independencephysical and logical data independence
physical and logical data independence
apoorva_upadhyay
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
aakanksha s
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)
welcometofacebook
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
askme
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
Jafar Nesargi
 

What's hot (20)

ER MODEL
ER MODELER MODEL
ER MODEL
 
E-R Diagram of College Management Systems
E-R Diagram of College Management SystemsE-R Diagram of College Management Systems
E-R Diagram of College Management Systems
 
Lecture 03 data abstraction and er model
Lecture 03 data abstraction and er modelLecture 03 data abstraction and er model
Lecture 03 data abstraction and er model
 
DBMS - ER Model
DBMS - ER ModelDBMS - ER Model
DBMS - ER Model
 
physical and logical data independence
physical and logical data independencephysical and logical data independence
physical and logical data independence
 
Database Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity TypesDatabase Modeling Using Entity.. Weak And Strong Entity Types
Database Modeling Using Entity.. Weak And Strong Entity Types
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
E R model
E R modelE R model
E R model
 
Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)Database Systems - Entity Relationship Modeling (Chapter 4/2)
Database Systems - Entity Relationship Modeling (Chapter 4/2)
 
Erd chapter 3
Erd chapter 3Erd chapter 3
Erd chapter 3
 
Logical database design and the relational model(database)
Logical database design and the relational model(database)Logical database design and the relational model(database)
Logical database design and the relational model(database)
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 
D I T211 Chapter 3
D I T211    Chapter 3D I T211    Chapter 3
D I T211 Chapter 3
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
Schema Integration, View Integration and Database Integration, ER Model & Dia...
Schema Integration, View Integration and Database Integration, ER Model & Dia...Schema Integration, View Integration and Database Integration, ER Model & Dia...
Schema Integration, View Integration and Database Integration, ER Model & Dia...
 
Entity Relationship Modelling
Entity Relationship ModellingEntity Relationship Modelling
Entity Relationship Modelling
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Er model
Er modelEr model
Er model
 

Similar to Relational Database & Database Management System

Database schema architecture.ppt
Database schema architecture.pptDatabase schema architecture.ppt
Database schema architecture.ppt
ImXaib
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
Sachin MK
 
17032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp0217032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp02
Samina Sam Sam
 
M04 Design Patterns
M04 Design PatternsM04 Design Patterns
M04 Design Patterns
Dang Tuan
 
Sofwear deasign and need of design pattern
Sofwear deasign and need of design patternSofwear deasign and need of design pattern
Sofwear deasign and need of design pattern
chetankane
 

Similar to Relational Database & Database Management System (20)

database management system
database management systemdatabase management system
database management system
 
21792 relational database managementsystem
21792 relational database managementsystem21792 relational database managementsystem
21792 relational database managementsystem
 
Database schema architecture.ppt
Database schema architecture.pptDatabase schema architecture.ppt
Database schema architecture.ppt
 
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTESDATA BASE MANAGEMENT SYSTEM - SHORT NOTES
DATA BASE MANAGEMENT SYSTEM - SHORT NOTES
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
2 rel-algebra
2 rel-algebra2 rel-algebra
2 rel-algebra
 
Introduction to UML
Introduction to UMLIntroduction to UML
Introduction to UML
 
uml2-1214558329929112-8.ppt
uml2-1214558329929112-8.pptuml2-1214558329929112-8.ppt
uml2-1214558329929112-8.ppt
 
software_engg-chap-03.ppt
software_engg-chap-03.pptsoftware_engg-chap-03.ppt
software_engg-chap-03.ppt
 
Encapsulation
EncapsulationEncapsulation
Encapsulation
 
Advance oops concepts
Advance oops conceptsAdvance oops concepts
Advance oops concepts
 
Database Management Systems Tutorial
Database Management Systems TutorialDatabase Management Systems Tutorial
Database Management Systems Tutorial
 
17032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp0217032658 database-management-systems-tutorial-090917034406-phpapp02
17032658 database-management-systems-tutorial-090917034406-phpapp02
 
Uml - An Overview
Uml - An OverviewUml - An Overview
Uml - An Overview
 
DBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental conceptsDBMS and Rdbms fundamental concepts
DBMS and Rdbms fundamental concepts
 
M04 Design Patterns
M04 Design PatternsM04 Design Patterns
M04 Design Patterns
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
Prophecy Of Design Patterns
Prophecy Of Design PatternsProphecy Of Design Patterns
Prophecy Of Design Patterns
 
Bca examination 2015 dbms
Bca examination 2015 dbmsBca examination 2015 dbms
Bca examination 2015 dbms
 
Sofwear deasign and need of design pattern
Sofwear deasign and need of design patternSofwear deasign and need of design pattern
Sofwear deasign and need of design pattern
 

More from Nimrakhan89

network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...
Nimrakhan89
 

More from Nimrakhan89 (8)

Dbms lifecycle. ..Database System Development Lifecycle
Dbms lifecycle. ..Database System  Development LifecycleDbms lifecycle. ..Database System  Development Lifecycle
Dbms lifecycle. ..Database System Development Lifecycle
 
Cascading style-sheet-
Cascading style-sheet-Cascading style-sheet-
Cascading style-sheet-
 
HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners HTML all tags .........its to much helpful for beginners
HTML all tags .........its to much helpful for beginners
 
tables in html and there tags ....
tables in html and there tags ....tables in html and there tags ....
tables in html and there tags ....
 
network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...network modeling ....and its advantages and disadvantages...
network modeling ....and its advantages and disadvantages...
 
HTML language and all its tags .....
HTML language and all its tags .....HTML language and all its tags .....
HTML language and all its tags .....
 
threads and its types ....in operating system ..
threads and its types ....in operating system ..threads and its types ....in operating system ..
threads and its types ....in operating system ..
 
Communication skills
Communication skills Communication skills
Communication skills
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Recently uploaded (20)

ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

Relational Database & Database Management System

  • 3. SOME PRELIMINARIES The theory taught in this part of the course was originally devised by Edgar F. Codd in 1969. His seminal paper (1970) was entitled A Relational Model of Data for Large Shared Data Banks. We will use a language called Tutorial D for examples and exercises. We will use Rel, an implementation of Tutorial D, for our on-line work.
  • 4. WHAT IS A DATABASE? An organised, machine-readable collection of symbols, to be interpreted as a true account of some enterprise. Machine-updatable, too … … so a database is also a collection of variables. A database is typically available to a community of users, with possibly varying requirements.
  • 5. “ORGANISED COLLECTION OF SYMBOLS” StudentId Name CourseId S1 Anne C1 S1 Anne C2 S2 Boris C1 S3 Cindy C3 For example: The symbols are organised into rows and columns, thus forming a table. One of the rows is different in kind from the others.
  • 7. RELATIONAL MODEL RDBMS (Relational Database Management System) external view  The data are represented as a set of relations.  A relation is a two-dimensional table. This doesn’t mean that data are stored as tables; the physical storage of the data is independent of the way the data are logically organized.
  • 8. Relation  Name – each relation in a relational database should have a name that is unique among other relations.  Attribute – each column in a relation.  The degree of the relation – the total number of attributes for a relation.  Tuple – each row in a relation.  The cardinality of the relation – the total number of rows in a relation.
  • 10. OPERATIONS ON RELATIONS In a relational database, we can define several operations to create new relations out of the existing ones. Basic operations:  Insert  Delete  Update  Select  Project  Join  Union  Intersection  Difference
  • 11. Insert operation  An unary operation.  Insert a new tuple into the relation.
  • 12. Delete operation  An unary operation.  Delete a tuple defined by a criterion from the relation.
  • 13. Update operation  An unary operation.  Changes the value of some attributes of a tuple.
  • 14. Select operation  An unary operation.  It is applied to one single relation and creates another relation.  The tuples in the resulting relation are a subset of the tuples in the original relation.  Use some criteria to select
  • 15. Project operation  An unary operation.  It is applied to one single relation and creates another relation.  The attributes in the resulting relation are a subset of the attributes in the original relation.
  • 16. Join operation  A binary operation.  Combines two relations based on common attributes.
  • 17. Union operation  A binary operation.  Creates a new relation in which each tuple is either in the first relation, in the second, or in both.  The two relations must have the same attributes.
  • 18. Intersection operation  A binary operation.  Creates a new relation in which each tuple is a member in both relations.  The two relations must have the same attributes.
  • 19. Difference operation  A binary operation.  Creates a new relation in which each tuple is in the first relation but not the second.  The two relations must have the same attributes.
  • 20. ONE-TO-ONE RELATIONSHIP Record 1 Record 2 Record 3 Record 4 Table A Record 1 Record 2 Record 3 Record 4 Table B
  • 21. ONE-TO-MANY RELATIONSHIP Record 1 Record 2 Record 3 Record 4 Table A Record 1A Record 1B Record 1C Record 2A Record 2B Record 3A Record 3B Record 3C Record 3D Record 4A Record 4B Table B
  • 22. MANY TABLES CAN BE LINKED Table ATable B Table C Table D Lookup Table E