Relational Algebra Flashcards

1
Q

A set of mathematical principles that form the basis for manipulating relational table contents; the eight main functions are SELECT, PROJECT, JOIN, INTERSECT, UNION, DIFFERENCE, PRODUCT, and DIVIDE.

A

Relational Algebra

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

A container (variable) for holding relation data (not the relation itself). It consists of a heading, which is made of the names of attributes, and a body, which is the data.

A

Relational Variable or “relvar”

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

A unary relational operator that yields values for all rows found in the table that satisfy a given condition. All attributes are included in the result.

A

SELECT or RESTRICT represented by the Greek letter sigma sigma (σ).

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

A property of relational operators that permits the use of relational algebra operators on existing tables (relations) to produce new relations.

A

Closure

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

A unary operator that will return only the attributes requested in the order requested. All rows are returned.

A

PROJECT, denoted by the Greek letter pi (π).

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

Combines all rows from two tables, excluding duplicate rows. The tables must have the same attribute characteristics.

A

UNION

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

Two or more tables that have the same number of columns and the corresponding columns have compatible domains.

A

Union compatible

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

An operator used to yield only the rows that are common to two union-compatible tables.

A

INTERSECT, denoted by the upside down U symbol

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

An operator used to yield all rows from one table that are not found in another union-compatible table.

A

DIFFERENCE, denoted by the minus symbol.

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

An operator that yields all possible pairs of rows from two tables

A

PRODUCT, denoted by the multiplication symbol “x”

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

A type of operator used to yield rows from two tables based on criteria.

A

JOIN, denoted by the symbol ⋈.

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

A relational operation that yields a new table composed of only the rows with common values in their common attribute(s).

A

natural join

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

Columns that are used in the criteria of join operations. The join columns generally share similar values.

A

join columns

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