Sample Picasso Diagrams » QT18  (7 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  

18.sql

Plan Diagram * 1920 x 1170 * (147KB)
Reduced Diagram (20%) * 1920 x 1170 * (149KB)
Cardinality Diagram * 1920 x 1170 * (150KB)
Cost Diagram * 1920 x 1170 * (151KB)
Plan1 * 1936 x 1186 * (107KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1936 x 1186 * (107KB)
Plan3 * 1936 x 1186 * (102KB)
  Plan2  
  Plan3  
Album last updated on 2/9/09 9:58 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science