[prev] 34 [next]

Relational Algebra Operations (cont)

Projection
  • πX(r)   =   Proj[X](r)   =   { t[X]  |  t ∈ r }
  • X ⊆ R ;  result schema is given by attributes in X
Computational view:

result = {}
for each tuple t in relation r
    result = result ∪ {t[X]}