January 9, 2006



Coverage: [DBCB] Chapter 15, pp. 713-715 and Chapter 16, pp. 787-800


Introduction to CPS 432/562: Database Management Systems II


Motivating Example


Overview of Query Processing


Physical Query Plan Selection


Our Plan (:-)

  1. we will spend 2 weeks (4 classes) on LQP selection
  2. we will spend 2 weeks (4 classes) on PQP selection


Components of Logical Query Plan Selection

    (courtesy [DBCB])

  1. parser
  2. preprocessor - replaces views, checks types
  3. logical query plan generator
  4. query rewriter


Simple SQL Grammar

<Query> := <SFW>
<Query> := ( <Query> )
<SFW>   := SELECT <SelList> FROM <FromList> WHERE <Condition>


Little Bit of Notation


Commutative and Associative Rewrite Rules for Improving LQPs


Distributive Law of Intersection over Union


Some Trivial Laws


Golden Rule


Laws Involving Selection


Just Started Pushing Selection through , , , , , and


References



Return Home