Relational Languages Flashcards
1
Q
what is relational algebra
A
a procedural query language
2
Q
what is the difference between SQL and relational algebra
A
RA recursively performs operations on a relation to form a new relation
3
Q
what are the unary relational operations (3)
A
select σ
project Π
rename ρ
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
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