Query Processing and Optimization
Query Processing and Optimization
Query Processing and Optimization
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Some Transformation Rules<br />
• Cascade of σ: σ c1 ∧ c 2 ∧ ... ∧ c n<br />
(R) = σ c1 (σ c2 (...(σ cn (R))...))<br />
• Commutativity of σ: σ c1 (σ c2 (R)) = σ c2 (σ c1 (R))<br />
• Commuting σ with π: π L (σ c (R)) = σ c (π L (R))<br />
• Only if c involves solely attributes in L.<br />
• Commuting σ with n : σ c (R<br />
n S) = σ c (R)<br />
n S<br />
• Only if c involves solely attributes in R.<br />
• Commuting σ with set operations: σ c (R θ S) = σ c (R) θ σ c (S)<br />
• Where θ is one of ∪, ∩, or -.<br />
• Commutativity of ∪, ∩, <strong>and</strong> n: R θ S = S θ R<br />
• Where θ is one of ∪, ∩ <strong>and</strong> n.<br />
• Associativity of n, ∪, ∩: (R θ S) θ T = R θ (S θ T)<br />
33