SQL |
Tuple Relational CalculusDescription of the data |
Relational AlgebraProcedure to retrieve data |
|
Selection
|
{ R | r(R) and } |
{ t | t r and } |
|
Projection
|
{ R.ai . . . R.aj | r(R) } |
{ t.A | t r } |
|
Union
|
{T | r(T) or s(T) } |
{ t | t r or t s } |
|
Minus
|
{T | r(T) and not s(T) } |
{ t | t r and t s } |
|
Cartesian Product
|
{ R,Q | r(R) and q(Q) } |
{ tr tq | tr r and tq q } |
|
Join
|
{ P,Q | p(P) and q(Q) and } |
{tptq | tp p and tq q and } |
|
Intersection | |||
Division |