Relational Algebra Flashcards

1
Q

Relational algebra

A

Relational algebra is a framework for working with data stored in relational databases. It provides a set of operations for manipulating tables and their relationships to generate new tables.

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

Relational algebra expression

A

A sequence of relational algebra operations on one or more relations that produces a new relation as a result

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

What are the groups of operations on relational algebra?

A
  • Unary Relational Operation
  • Relational Algebra Operations from Set Theory
  • Binary Relational Operations
  • Additional Relational Operations
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Unary Relational Operations

A
  • SELECT: σ
  • PROJECT: π
  • RENAME: ρ
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Relational Algebra Operations Set Theory

A
  • UNION: ∪
  • INTERSECTION: ∩
  • DIFFERENCE: -
  • CARTESIAN PRODUCT: X
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Binary Relational Operations

A
  • JOIN:
  • DIVISION:
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Additional Relational Operations

A
  • OUTER JOINS
  • INNER JOINS
  • AGGREGATE FUNCTIONS (SUM, COUNT, MIN ,MAX)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

SELECT

A

σ dno=4(EMPLOYEE)

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

PROJECT OPERATION

A

This operation filter attributes from a relation. Keeps certain columns and discards others. It creates a vertical partitioning

πlname,fname,salary(EMPLOYEE)

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

Left arrow symbol

A

The assignment operation

DEPT5_EMPS < – σdno=5(EMPLOYEE)
RESULT < – πfname,Lname,salary(RESULT)

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

JOIN

A

Used to identify and select related tools from two relations

Join operation combines the relation R1 and R2 with respect to a condition. It is denoted by ⋈.

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

A complete set

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