Professional Documents
Culture Documents
Example 1
σ topic = "Database" (Student)
Output – Selects tuples from Student where topic = ‘Database’.
Example 2
σ topic = "Database" and author = "csestudies "( Student)
Output – Selects tuples from Student where the topic is ‘Database’ and ‘author’ is csestudies.
Example 3
σ sales > 50000 (Customers)
Output – Selects tuples from Customers where sales is greater than 50000
1 राहुि Active
2 राम Active
3 श्याम Inactive
4 साहूिी Active
CustomerName Status
राहुि Active
राम Active
श्याम Inactive
साहूिी Active
Example:-
Table A Table B
column column column column
1 2 1 2
1 1 1 1
1 2 1 3
Relational Algebra by JK Sir Axixa Technologies
A ∪ B gives
Table A ∪ B
column 1 column 2
1 1
1 2
1 3
Syntax:-
R=P–Q
Difference operation, Relation 1 में स्थर्त common tuples को हटा दे ता हैं तर्ा िो हमारा
output आयेग वह Relation 1 में स्थर्त tuples होींगे िो की Relation 2 में ना हो
Example:-
Table A Table B
column 1 column 2 column 1 column 2
1 1 1 1
1 2 1 3
C=A–B
Table A – B
column 1 column 2
1 2
6. Intersections (∩)
Example:-
Table A Table B
column 1 column 2 column 1 column 2
1 1 1 1
1 2 1 3
Table A ∩ B
column 1 column 2
1 1