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

select
    p_brand,
    p_type,
    p_retailprice,
    count(distinct ps_suppkey) as supplier_cnt
from
    partsupp,
    part
where
    p_partkey = ps_partkey
    and p_retailprice :varies
    and ps_suppkey in (
        select
            s_suppkey
        from
            supplier
        where
            s_acctbal :varies
    )
group by
    p_brand,
    p_type,
    p_retailprice
order by
    supplier_cnt desc,
    p_brand,
    p_type,
    p_retailprice

Optimizer Diagrams
  Up one level  
Plan Diagram * 1919 x 1125 * (95KB)
Reduced Diagram (20%) * 1919 x 1125 * (96KB)
Cardinality Diagram * 1919 x 1125 * (99KB)
Cost Diagram * 1919 x 1125 * (99KB)
Plan1 * 1919 x 1125 * (64KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1919 x 1125 * (64KB)
Plan3 * 1919 x 1125 * (62KB)
Plan4 * 1919 x 1125 * (63KB)
Plan5 * 1919 x 1125 * (67KB)
Plan6 * 1919 x 1125 * (62KB)
  Plan2  
  Plan3  
  Plan4  
  Plan5  
  Plan6  
Album last updated on 2/9/09 9:59 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science