Relation Algebra Flashcards

1
Q

What is a query language used for?

A

Manipulation and retrieval of data from a database

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

What are the benefits of the relational model?

A

Support simple, powerful, declarative QL, strong formal foundation based on logic, allows for much optimization

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

What is the result of a query?

A

A relation instance

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

What is a query applied to?

A

A relation instance

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

What are the schema of the input and output relations determined by?

A

The query itself

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

What’s the difference between relational algebra and relational calculus?

A

Algebra is more operational, and more specific; but both describe what they want

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

What is an algebra?

A

Mathematical system consisting of operands and operators.

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

What is an operand?

A

Variable or values from which new values can be constructed

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

What is an operator?

A

Symbols denoting procedures that construct new values from given values

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

What is Relational Algebra?

A

An algebra whose operands are relations or variables that represent relations and operators that are designed to do the common things on relations. Used as a query language for relations

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

What are 8 core relational algebra operations?

A

Union, Intersection, Difference, Selection, Projection, Products, Joins, Renaming

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

What is a union, intersection, and difference?

A

Usual set operations that require both operands to have the same relation scheme

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

What is a selection?

A

Select Rows

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

What is a projection?

A

Project Columns

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

What are products and joins?

A

Compositions of relations

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