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

select
    c_name,
    c_custkey,
    o_orderkey,
    o_orderdate,
    o_totalprice,
    sum(l_quantity)
from
    customer,
    orders,
    lineitem
where
    o_orderkey in (
        select
            l_orderkey
        from
            lineitem
        where l_extendedprice :varies
        group by
            l_orderkey having
                sum(l_quantity) > 300
    )
    and c_custkey = o_custkey
    and o_orderkey = l_orderkey
    and c_acctbal :varies
group by
    c_name,
    c_custkey,
    o_orderkey,
    o_orderdate,
    o_totalprice
order by
    o_totalprice desc,
    o_orderdate

Optimizer Diagrams
  Up one level  
Plan Diagram * 1920 x 1129 * (146KB)
Reduced Diagram (20%) * 1920 x 1129 * (144KB)
Cardinality Diagram * 1920 x 1129 * (144KB)
Cost Diagram * 1920 x 1129 * (147KB)
Plan1 * 1936 x 1186 * (116KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1936 x 1186 * (118KB)
Plan3 * 1936 x 1186 * (115KB)
Plan4 * 1936 x 1186 * (115KB)
Plan5 * 1936 x 1186 * (115KB)
Plan6 * 1936 x 1186 * (109KB)
  Plan2  
  Plan3  
  Plan4  
  Plan5  
  Plan6  
Plan7 * 1936 x 1186 * (106KB)
Plan8 * 1936 x 1186 * (109KB)
  Plan7  
  Plan8  
Album last updated on 2/9/09 9:58 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science