Album » OptC » q18  (12 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 * 1252 x 777 * (183KB)
reduced_diag * 1249 x 778 * (162KB)
cost_diag * Plan Cost Diagram * 1252 x 777 * (219KB)
card_diag * Plan Cardinality Diagram * 1252 x 777 * (204KB)
plan1 * PLAN 1 * 1250 x 870 * (38KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1250 x 870 * (40KB)
plan3 * PLAN 3 * 1250 x 870 * (38KB)
plan4 * PLAN 4 * 1250 x 870 * (38KB)
plan5 * PLAN 5 * 1250 x 870 * (42KB)
plan6 * PLAN 6 * 1250 x 870 * (44KB)
  plan2  
  plan3  
  plan4  
  plan5  
  plan6  
plan7 * PLAN 7 * 1248 x 869 * (43KB)
plan8 * PLAN 8 * 1252 x 869 * (42KB)
  plan7  
  plan8  
Album last updated on 5/19/07 1:02 AM
Powered by JAlbum 7.1 and BluPlusPlus skin