Sample Picasso Diagrams » QT18  (8 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 1170 * (159KB)
Reduced Diagram (20%) * 1920 x 1170 * (154KB)
Cardinality Diagram * 1920 x 1170 * (159KB)
Cost Diagram * 1920 x 1170 * (160KB)
Plan1 * 1920 x 1170 * (110KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1920 x 1170 * (124KB)
Plan3 * 1920 x 1170 * (111KB)
Plan4 * 1920 x 1170 * (107KB)
  Plan2  
  Plan3  
  Plan4  
Album last updated on 2/9/09 9:58 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science