Relational Algebra Flashcards

1
Q

What is relational algebra?

A

A form of algebra that has relations in place of operators.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does relational algebra enable database querying?

A

SQL queries are converted to relational algebra via the Relational Data Management System.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the 3 main types of relational algebra operations?

A

Unary, Set, Binary.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the 3 Unary operations?

A

SELECT : New relation based on the tuples that satisfy the select condition.
PROJECTION : New relation of certain attributes.
RENAME : Rename a relation as well as specified attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the 3 types of Set operations?

A

Union, Intersection, Difference, Cartesian Product.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the 3 Joins in the Binary operations?

A

Theta Join : New relation containing all tuples of a cartesian product that satisfy the join condition.
Equijoin : Create a relation from R1 and R2 where the equality comparotor between the relations is satisfied. For example Student.age == Teacher.age
Natural Join : An equijoin of R1 and R2 over all common attributes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly