SlideShare a Scribd company logo
1 of 17
Relational Algebra
X
⋈
• Relational algebra is a widely used procedural query
language.
• It collects instances of relations as input and gives
occurrences of relations as output.
• It uses various operation to perform this action.
• Relational algebra operations are performed recursively
on a relation.
• The output of these operations is a new relation, which
might be formed from one or more input relations.
X
⋈
 The SELECT operation is used for selecting a subset of
the tuples according to a given selection condition.
 Sigma(σ)Symbol denotes it.
 It is used as an expression to choose tuples which meet
the selection condition.
 Select operation selects tuples that satisfy a given
predicate.
 The projection eliminates all attributes of the input relation but
those mentioned in the projection list.
 The projection method defines a relation that contains a
vertical subset of Relation.
 This helps to extract the values of specified attributes to
eliminates duplicate values.
 ( ) The symbol used to choose attributes from a relation.
 This operation helps you to keep specific columns from a
relation and discards the other columns.
ID Name Address Hobby
1123 John 123 Main Stamps
1123 John 123 Main Coins
5556 Mary 7 Lake Dr Hiking
9876 Bart 5 Pine St Stamps
ID Name Address Hobby
1123 John 123 Main Stamps
9876 Bart 5 Pine St Stamps
Name Hobby
John Stamps
John Coins
Mary Hiking
Bart Stamps
Person
σ Hobby =‘stamps’(Person)
Name, Hobby(Person)
 UNION is symbolized by ∪ symbol.
 It includes all tuples that are in tables A or in B.
 It also eliminates duplicate tuples.
 So, set A UNION set B would be expressed as:
The result <- A ∪ B
 For a union operation to be valid, the following
conditions must hold -R and S must be the same
number of attributes.
 Attribute domains need to be compatible.
 Duplicate tuples should be automatically removed.
A 1
B 2
D 3
F 4
E 5
A 1
C 2
D 3
E 4
A 1
B 2
C 2
D 3
E 5
F 4
E 4
A
B
A U B
 An intersection is defined by the symbol ∩
 For Ex. A ∩ B
 It defines a relation consisting of a set of all tuple that are in
both A and B. However, A and B must be union-compatible.
A
A 1
B 2
D 3
F 4
E 5
A 1
C 2
D 3
E 4
B
A ∩ B
A 1
D 3
X
 This type of operation is helpful to merge columns from two
relations.
 Generally, a Cartesian product is never a meaningful operation
when it performs alone.
 However, it becomes meaningful when it is followed by other
operations.
 Cartesian Product operation denoted by X.
A
A 1
B 2
D 3
F 4
E 5
A 1
C 2
D 3
E 4
B
A 1 A 1
A 1 C 2
A 1 D 3
A 1 E 4
B 2 A 1
B 2 C 2
B 2 D 3
B 2 E 4
D 3 A 1
D 3 C 2
D 3 D 3
D 3 E 4
A X B
F 4 A 1
F 4 C 2
F 4 D 3
F 4 E 4
E 5 A 1
E 5 C 2
E 5 D 3
E 5 E 4
 Join operation is essentially a Cartesian product followed by a selection
criterion.
 Join operation denoted by ⋈.
 JOIN operation also allows joining variously related tuples from different
relations.
 Types of JOIN:
Various forms of join operation are:
• Inner Joins:
 Theta join
 EQUI join
 Natural join
• Outer join:
 Left Outer Join
 Right Outer Join
 Full Outer Join
A
Col a Col b
A 1
B 2
D 3
F 4
E 5
A 1
C 2
D 3
E 4
B
Col a Col b
A ⋈ B
A.Col a = B.Col a
A ⋈ B
A.Col b = B.Col b
A 1 A 1
D 3 D 3
E 5 E 4
A 1 A 1
B 2 C 2
D 3 D 3
F 4 E 4
1. Who is the father of DBMS?
Ans :- Edgar. F. Codd.
2. Which is used to denote the selection operation in relational
algebra?
Ans :- Sigma (Greek)
3. How is the left outer join symbol represented in relational
algebra?
a) ⟕
b) ⟖
c) ⟗
d) ⋈
Ans :- (a) ⟕.
Relational algebra ppt

More Related Content

What's hot

Relational Database Design
Relational Database DesignRelational Database Design
Relational Database DesignArchit Saxena
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMSMegha Patel
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLEVraj Patel
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structureAbrish06
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship DiagramShakila Mahjabin
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJDharita Chokshi
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalramya marichamy
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMSkoolkampus
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translationAkshaya Arunan
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure pptNalinNishant3
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introductionSmriti Jain
 

What's hot (20)

Database language
Database languageDatabase language
Database language
 
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with ExamplesDML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
DML, DDL, DCL ,DRL/DQL and TCL Statements in SQL with Examples
 
Relational Database Design
Relational Database DesignRelational Database Design
Relational Database Design
 
Transaction management DBMS
Transaction  management DBMSTransaction  management DBMS
Transaction management DBMS
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
FUNCTION DEPENDENCY  AND TYPES & EXAMPLEFUNCTION DEPENDENCY  AND TYPES & EXAMPLE
FUNCTION DEPENDENCY AND TYPES & EXAMPLE
 
Data structure ppt
Data structure pptData structure ppt
Data structure ppt
 
Graph in data structure
Graph in data structureGraph in data structure
Graph in data structure
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
SQL Views
SQL ViewsSQL Views
SQL Views
 
Relational model
Relational modelRelational model
Relational model
 
ER Model in DBMS
ER Model in DBMSER Model in DBMS
ER Model in DBMS
 
Entity Relationship Diagram
Entity Relationship DiagramEntity Relationship Diagram
Entity Relationship Diagram
 
SQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJSQL, Embedded SQL, Dynamic SQL and SQLJ
SQL, Embedded SQL, Dynamic SQL and SQLJ
 
SQL(DDL & DML)
SQL(DDL & DML)SQL(DDL & DML)
SQL(DDL & DML)
 
Mining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactionalMining single dimensional boolean association rules from transactional
Mining single dimensional boolean association rules from transactional
 
13. Query Processing in DBMS
13. Query Processing in DBMS13. Query Processing in DBMS
13. Query Processing in DBMS
 
Syntax directed translation
Syntax directed translationSyntax directed translation
Syntax directed translation
 
Introduction to data structure ppt
Introduction to data structure pptIntroduction to data structure ppt
Introduction to data structure ppt
 
SQL - Structured query language introduction
SQL - Structured query language introductionSQL - Structured query language introduction
SQL - Structured query language introduction
 

Similar to Relational algebra ppt

Relational Algebra.ppt
Relational Algebra.pptRelational Algebra.ppt
Relational Algebra.pptSreenivas R
 
Unit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdfUnit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdfajajkhan16
 
Le funzioni matematiche in inglese
Le funzioni matematiche in ingleseLe funzioni matematiche in inglese
Le funzioni matematiche in ingleseStefaniaPaoluzi
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1oreves
 
Lesson 1 1 properties of real numbers
Lesson 1 1 properties of real numbersLesson 1 1 properties of real numbers
Lesson 1 1 properties of real numbersTerry Gastauer
 
Holt alg1 ch5 1 identify linear functions
Holt alg1 ch5 1 identify linear functionsHolt alg1 ch5 1 identify linear functions
Holt alg1 ch5 1 identify linear functionslothomas
 
2.1 Basics of Functions and Their Graphs
2.1 Basics of Functions and Their Graphs2.1 Basics of Functions and Their Graphs
2.1 Basics of Functions and Their Graphssmiller5
 
Operations on Integers [Autosaved].pptx
Operations on Integers [Autosaved].pptxOperations on Integers [Autosaved].pptx
Operations on Integers [Autosaved].pptxDynaAlonsagayLabinda
 
Chapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdfChapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdfTamiratDejene1
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra DrillsDaniel Bragais
 
Properties of Addition & Multiplication
Properties of Addition & MultiplicationProperties of Addition & Multiplication
Properties of Addition & Multiplicationitutor
 
Unidad ii matemática ANA VIRGUEZ
Unidad ii matemática ANA VIRGUEZ Unidad ii matemática ANA VIRGUEZ
Unidad ii matemática ANA VIRGUEZ anavirguez3
 
Relational algebra
Relational algebraRelational algebra
Relational algebraHuda Alameen
 
5.1 indentifying linear equations
5.1 indentifying linear equations5.1 indentifying linear equations
5.1 indentifying linear equationscoolhanddav
 
3 4 character tables
3 4 character tables3 4 character tables
3 4 character tablesAlfiya Ali
 
1695304562_RELATIONAL_ALGEBRA.pdf
1695304562_RELATIONAL_ALGEBRA.pdf1695304562_RELATIONAL_ALGEBRA.pdf
1695304562_RELATIONAL_ALGEBRA.pdfKavinilaa
 

Similar to Relational algebra ppt (20)

Relational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdfRelational Algebra-23-04-2023.pdf
Relational Algebra-23-04-2023.pdf
 
Relational Algebra.ppt
Relational Algebra.pptRelational Algebra.ppt
Relational Algebra.ppt
 
Unit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdfUnit-II DBMS presentation for students.pdf
Unit-II DBMS presentation for students.pdf
 
Le funzioni matematiche in inglese
Le funzioni matematiche in ingleseLe funzioni matematiche in inglese
Le funzioni matematiche in inglese
 
Precalculus 1 chapter 1
Precalculus 1 chapter 1Precalculus 1 chapter 1
Precalculus 1 chapter 1
 
Lesson 1 1 properties of real numbers
Lesson 1 1 properties of real numbersLesson 1 1 properties of real numbers
Lesson 1 1 properties of real numbers
 
Chapter0
Chapter0Chapter0
Chapter0
 
Holt alg1 ch5 1 identify linear functions
Holt alg1 ch5 1 identify linear functionsHolt alg1 ch5 1 identify linear functions
Holt alg1 ch5 1 identify linear functions
 
2.1 Basics of Functions and Their Graphs
2.1 Basics of Functions and Their Graphs2.1 Basics of Functions and Their Graphs
2.1 Basics of Functions and Their Graphs
 
Operations on Integers [Autosaved].pptx
Operations on Integers [Autosaved].pptxOperations on Integers [Autosaved].pptx
Operations on Integers [Autosaved].pptx
 
Chapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdfChapter – 5 Relational Algebra.pdf
Chapter – 5 Relational Algebra.pdf
 
Modules Linear Algebra Drills
Modules Linear Algebra DrillsModules Linear Algebra Drills
Modules Linear Algebra Drills
 
Properties of Addition & Multiplication
Properties of Addition & MultiplicationProperties of Addition & Multiplication
Properties of Addition & Multiplication
 
Chapter 5 Identifying Linear Functions
Chapter 5 Identifying Linear FunctionsChapter 5 Identifying Linear Functions
Chapter 5 Identifying Linear Functions
 
Introductory calculus
Introductory calculusIntroductory calculus
Introductory calculus
 
Unidad ii matemática ANA VIRGUEZ
Unidad ii matemática ANA VIRGUEZ Unidad ii matemática ANA VIRGUEZ
Unidad ii matemática ANA VIRGUEZ
 
Relational algebra
Relational algebraRelational algebra
Relational algebra
 
5.1 indentifying linear equations
5.1 indentifying linear equations5.1 indentifying linear equations
5.1 indentifying linear equations
 
3 4 character tables
3 4 character tables3 4 character tables
3 4 character tables
 
1695304562_RELATIONAL_ALGEBRA.pdf
1695304562_RELATIONAL_ALGEBRA.pdf1695304562_RELATIONAL_ALGEBRA.pdf
1695304562_RELATIONAL_ALGEBRA.pdf
 

More from GirdharRatne

DBMS Integrity rule
DBMS Integrity ruleDBMS Integrity rule
DBMS Integrity ruleGirdharRatne
 
System analysis and design logical design
System analysis and design  logical designSystem analysis and design  logical design
System analysis and design logical designGirdharRatne
 
Transmisssion media
Transmisssion mediaTransmisssion media
Transmisssion mediaGirdharRatne
 
Mobile telephone system
Mobile telephone systemMobile telephone system
Mobile telephone systemGirdharRatne
 
Introduction to journal entry
Introduction to journal entryIntroduction to journal entry
Introduction to journal entryGirdharRatne
 
Programming language and process
Programming language and processProgramming language and process
Programming language and processGirdharRatne
 

More from GirdharRatne (7)

SQL commands
SQL commandsSQL commands
SQL commands
 
DBMS Integrity rule
DBMS Integrity ruleDBMS Integrity rule
DBMS Integrity rule
 
System analysis and design logical design
System analysis and design  logical designSystem analysis and design  logical design
System analysis and design logical design
 
Transmisssion media
Transmisssion mediaTransmisssion media
Transmisssion media
 
Mobile telephone system
Mobile telephone systemMobile telephone system
Mobile telephone system
 
Introduction to journal entry
Introduction to journal entryIntroduction to journal entry
Introduction to journal entry
 
Programming language and process
Programming language and processProgramming language and process
Programming language and process
 

Recently uploaded

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17Celine George
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxPooja Bhuva
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
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.pptxheathfieldcps1
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jisc
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
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.pptxDr. Sarita Anand
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
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...pradhanghanshyam7136
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
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).pptxEsquimalt MFRC
 

Recently uploaded (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
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
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
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...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
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 algebra ppt

  • 3. • Relational algebra is a widely used procedural query language. • It collects instances of relations as input and gives occurrences of relations as output. • It uses various operation to perform this action. • Relational algebra operations are performed recursively on a relation. • The output of these operations is a new relation, which might be formed from one or more input relations.
  • 5.  The SELECT operation is used for selecting a subset of the tuples according to a given selection condition.  Sigma(σ)Symbol denotes it.  It is used as an expression to choose tuples which meet the selection condition.  Select operation selects tuples that satisfy a given predicate.
  • 6.  The projection eliminates all attributes of the input relation but those mentioned in the projection list.  The projection method defines a relation that contains a vertical subset of Relation.  This helps to extract the values of specified attributes to eliminates duplicate values.  ( ) The symbol used to choose attributes from a relation.  This operation helps you to keep specific columns from a relation and discards the other columns.
  • 7. ID Name Address Hobby 1123 John 123 Main Stamps 1123 John 123 Main Coins 5556 Mary 7 Lake Dr Hiking 9876 Bart 5 Pine St Stamps ID Name Address Hobby 1123 John 123 Main Stamps 9876 Bart 5 Pine St Stamps Name Hobby John Stamps John Coins Mary Hiking Bart Stamps Person σ Hobby =‘stamps’(Person) Name, Hobby(Person)
  • 8.  UNION is symbolized by ∪ symbol.  It includes all tuples that are in tables A or in B.  It also eliminates duplicate tuples.  So, set A UNION set B would be expressed as: The result <- A ∪ B  For a union operation to be valid, the following conditions must hold -R and S must be the same number of attributes.  Attribute domains need to be compatible.  Duplicate tuples should be automatically removed.
  • 9. A 1 B 2 D 3 F 4 E 5 A 1 C 2 D 3 E 4 A 1 B 2 C 2 D 3 E 5 F 4 E 4 A B A U B
  • 10.  An intersection is defined by the symbol ∩  For Ex. A ∩ B  It defines a relation consisting of a set of all tuple that are in both A and B. However, A and B must be union-compatible.
  • 11. A A 1 B 2 D 3 F 4 E 5 A 1 C 2 D 3 E 4 B A ∩ B A 1 D 3
  • 12. X  This type of operation is helpful to merge columns from two relations.  Generally, a Cartesian product is never a meaningful operation when it performs alone.  However, it becomes meaningful when it is followed by other operations.  Cartesian Product operation denoted by X.
  • 13. A A 1 B 2 D 3 F 4 E 5 A 1 C 2 D 3 E 4 B A 1 A 1 A 1 C 2 A 1 D 3 A 1 E 4 B 2 A 1 B 2 C 2 B 2 D 3 B 2 E 4 D 3 A 1 D 3 C 2 D 3 D 3 D 3 E 4 A X B F 4 A 1 F 4 C 2 F 4 D 3 F 4 E 4 E 5 A 1 E 5 C 2 E 5 D 3 E 5 E 4
  • 14.  Join operation is essentially a Cartesian product followed by a selection criterion.  Join operation denoted by ⋈.  JOIN operation also allows joining variously related tuples from different relations.  Types of JOIN: Various forms of join operation are: • Inner Joins:  Theta join  EQUI join  Natural join • Outer join:  Left Outer Join  Right Outer Join  Full Outer Join
  • 15. A Col a Col b A 1 B 2 D 3 F 4 E 5 A 1 C 2 D 3 E 4 B Col a Col b A ⋈ B A.Col a = B.Col a A ⋈ B A.Col b = B.Col b A 1 A 1 D 3 D 3 E 5 E 4 A 1 A 1 B 2 C 2 D 3 D 3 F 4 E 4
  • 16. 1. Who is the father of DBMS? Ans :- Edgar. F. Codd. 2. Which is used to denote the selection operation in relational algebra? Ans :- Sigma (Greek) 3. How is the left outer join symbol represented in relational algebra? a) ⟕ b) ⟖ c) ⟗ d) ⋈ Ans :- (a) ⟕.