Database-chap 4 Flashcards

Relational algebra

1
Q

Relational algebra

A

Defines the theoretical way of manipulating table contents through a number of relational operators

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

8 relational operators

A

SELECT
PROJECT
JOIN
PRODUCT
INTERSECT
UNION
DIFFERENCE
DIVIDE

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

Unary

A

One relation
select and project

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

Binary

A

Two relations
join(combine two relations in a specified way)

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

Minimally relational

A

Used to retrieve information from the basis for data manipulation languages such as SQL

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

Set theory

A

Is the theory based on the idea that elements have membership in a set

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

Select

A

Can be used to list all of the row values, or it can return only those row values that match a specified criterion

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

Logical operators

A

AND, OR, NOT

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

Project operator

A

Returns all values for selected attributes, project operator could be used to restrict the columns in each relation over a common attribute

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

Union set operator(U)

A

Combines all tuples from two relations, excluding duplicate

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

Intersect operator(n)

A

Returns only the tuples that appear in both relations

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

Difference operator

A

Returns all tuples in one relation that are not found in the other relation, that is ,it subtracts one relation from another

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

Equijoin

A

Links tables on the basis of an equality condition that compares specified columns of each table

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

The natural join operation

A

Requires that the 2 operant relations must have at least one common attribute

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

Key components of the relational model

A

Is the relation which allows data to be stored within the database in a structured manner

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

In order to write relational algebraic expressions the following steps should be followed

A
  1. List all the attributes we need to give the answer
  2. Select all the relations which we need, based on the list of attributes
    3.Specify the relational operators and the intermediate results that are needed