Relational Algebra Flashcards

1
Q

SELECT

A

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 operator selects tuples that satisfy a given predicate.

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

Projection

A

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. (pi) symbol is used to choose attributes from a relation. This operator helps you to keep specific columns from a relation and discards the other columns.

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

Rename

A

Rename is a unary operation used for renaming attributes of a relation.

ρ (a/b)R will rename the attribute ‘b’ of relation by ‘a’.

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

Cartesian Product

A

An operation used 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. It is also called Cross Product or Cross Join.

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

NATURAL JOIN

A

Natural join can only be performed if there is a common attribute (column) between the relations. The name and type of the attribute must be same. (⋈)

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

Relational Algebra

A

Procedural Query Language which takes instances of relations as input and yields instances of relations as output.

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

Relational Calculus

A

In contrast to Relational Algebra, Relational Calculus is a non-procedural query language, that is, it tells what to do but never explains how to do it.

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