29.01.2014 Views

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

Chapter 6: Query Decomposition and Data Localization

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Query</strong> <strong>Decomposition</strong> – Elimination of Redundancy<br />

• Elimination of redundancy: Simplify the query by eliminate redundancies, e.g.,<br />

redundant predicates<br />

– Redundancies are often due to semantic integrity constraints expressed in the query<br />

language<br />

– e.g., queries on views are exp<strong>and</strong>ed into queries on relations that satiesfy certain<br />

integrity <strong>and</strong> security constraints<br />

• Transformation rules are used, e.g.,<br />

– p ∧ p ⇐⇒ p<br />

– p ∨ p ⇐⇒ p<br />

– p ∧ true ⇐⇒ p<br />

– p ∨ false ⇐⇒ p<br />

– p ∧ false ⇐⇒ false<br />

– p ∨ true ⇐⇒ true<br />

– p ∧ ¬p ⇐⇒ false<br />

– p ∨ ¬p ⇐⇒ true<br />

– p 1 ∧ (p 1 ∨ p 2 ) ⇐⇒ p 1<br />

– p 1 ∨ (p 1 ∧ p 2 ) ⇐⇒ p 1<br />

DDB 2008/09 J. Gamper Page 8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!