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