Selection

σc1 Λ c2 Λ ... cn(R ) ≡ σc1c2(...(σcn (R ))...) All nonspatial relation are moveed to the right

σc1(σc2 (R )) σc2(σc1 (R )) Nonspatial selection is first than spatial selection

Projection

If ai’ are a set of attributes such that ai c ai+1 for i = 1,...n-1, then

πa1 (R )
  πa1(πa2(...(πan (R ))...)

Cross Product and Join

Conmutativity:
c S
S c R

Associativity
R
c (S c T) (S c R) c T

Implication
(R
c T) c S (T c R) c S

Selection, Projection and Join

If the selection condition involves attributes used by the projection operator:

πa(σc(R )) σc ( πa (R ))

If a condition of selection c involves an attribute that only appears in R and not in S, then:

σc(R c S ) σc (R ) c S

Projection can be processed with Join:

πa(R c S )   πa1(R ) c  πa2 (S )

where a1 is a subset of a, which appears in R, and a2 is the subset of a that appears in S

Última modificación: Saturday, 19 de November de 2005, 10:07