Sample Picasso Diagrams » QT17  (6 Slides)     [Page 1 of 1] :: Jump To  
Query Template

select
    sum(l_extendedprice) / 7.0 as avg_yearly
from
    lineitem,
    part
where
    p_partkey = l_partkey
    and p_retailprice :varies
    and l_quantity < (
        select
            0.2 * avg(l_quantity)
        from
            lineitem
        where
            l_partkey = p_partkey
            and l_extendedprice :varies
    )

Optimizer Diagrams
  Up one level  

17.sql

Plan Diagram * 1920 x 1170 * (148KB)
Reduced Diagram (20%) * 1920 x 1170 * (151KB)
Cardinality Diagram * 1920 x 1170 * (152KB)
Cost Diagram * 1920 x 1170 * (153KB)
Plan1 * 1936 x 1186 * (109KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1936 x 1186 * (106KB)
  Plan2  
Album last updated on 2/9/09 9:58 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science