Album » OptA » q18  (9 Slides)     [Page 1 of 1] :: Jump To  
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

  Up one level  
plan_diag * Plan Diagram * 1277 x 769 * (158KB)
reduced_diag * 1255 x 773 * (137KB)
cost_diag * Plan Cost Diagram * 1277 x 769 * (183KB)
card_diag * Plan Cardinality Diagram * 1277 x 769 * (191KB)
plan1 * PLAN 1 * 1252 x 871 * (46KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1252 x 871 * (46KB)
plan3 * PLAN 3 * 1252 x 871 * (44KB)
plan4 * PLAN 4 * 1252 x 871 * (46KB)
plan5 * PLAN 5 * 1252 x 871 * (46KB)
  plan2  
  plan3  
  plan4  
  plan5  
Album last updated on 5/19/07 12:51 AM
Powered by JAlbum 7.1 and BluPlusPlus skin