Relational Algebra is a procedural query language which takes relations as an input and returns relation as an output. There are some basic operators which can be applied on relations to produce required results which we will discuss one by one. We will use STUDENT_SPORTS, EMPLOYEE and STUDENT relations as given in Table 1, Table 2 and Table 3 respectively to understand the various operators.
Table 1: STUDENT_SPORTS
Table 2: EMPLOYEE
Table 3: STUDENT
Extended operators are those operators which can be derived from basic operators.There are mainly three types of extended operators in Relational Algebra:
The relations used to understand extended operators are STUDENT, STUDENT_SPORTS, ALL_SPORTS and EMPLOYEE which are shown in Table 1, Table 2, Table 3 and Table 4 respectively.
STUDENT
Table 1
STUDENT_SPORTS
Table 2
Table 3
EMPLOYEE
Table 4
Consider the relation STUDENT_SPORTS and ALL_SPORTS given in Table 2 and Table 3 above.
To apply division operator as
62 videos|66 docs|35 tests
|
1. What is relational algebra and what are its operators? |
2. How does the selection operator work in relational algebra? |
3. What is the difference between union and set difference operators in relational algebra? |
4. How does the join operator work in relational algebra? |
5. What is the purpose of the projection operator in relational algebra? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|