Relational Languages Flashcards

1
Q

what is relational algebra

A

a procedural query language

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

what is the difference between SQL and relational algebra

A

RA recursively performs operations on a relation to form a new relation

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

what are the unary relational operations (3)

A

select σ

project Π

rename ρ

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

give the relational algebra from set theory (3)

A

union U
Elements of both A and B

set difference -
Elements of A not in B

cartesian product X
product of the sets of records from two or more joined tables

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

what are the binary operations (4)

A

theta join R ⋈_θ S

equi join R ⋈_= S

natural join R ⋈ S

outer joins
R ⟕ S left
R ⟖ S right
R ⟗ S full outer join

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