Album » OptB » q3  (9 Slides)     [Page 1 of 1] :: Jump To  
select
    l_orderkey,
    sum(l_extendedprice * (1 - l_discount)) as revenue,
    o_orderdate,
    o_shippriority
from
    customer,
    orders,
    lineitem
where
    c_mktsegment = 'BUILDING'
    and c_custkey = o_custkey
    and l_orderkey = o_orderkey
    and o_totalprice :varies
    and l_extendedprice :varies
group by
    l_orderkey,
    o_orderdate,
    o_shippriority
order by
    revenue desc,
    o_orderdate

  Up one level  
plan_diag * Plan Diagram * 1254 x 773 * (156KB)
reduced_diag * 1253 x 785 * (151KB)
cost_diag * Plan Cost Diagram * 1254 x 773 * (179KB)
card_diag * Plan Cardinality Diagram * 1254 x 773 * (178KB)
plan1 * PLAN 1 * 1254 x 867 * (33KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1243 x 867 * (33KB)
plan3 * PLAN 3 * 1243 x 867 * (33KB)
plan4 * PLAN 4 * 1243 x 867 * (36KB)
plan5 * PLAN 5 * 1243 x 867 * (33KB)
  plan2  
  plan3  
  plan4  
  plan5  
Album last updated on 5/19/07 12:52 AM
Powered by JAlbum 7.1 and BluPlusPlus skin