Album » OptB » q12  (7 Slides)     [Page 1 of 1] :: Jump To  
select
    l_shipmode,
    sum(case
        when o_orderpriority = '1-URGENT'
            or o_orderpriority = '2-HIGH'
            then 1
        else 0
    end) as high_line_count,
    sum(case
        when o_orderpriority <> '1-URGENT'
            and o_orderpriority <> '2-HIGH'
            then 1
        else 0
    end) as low_line_count
from
    orders,
    lineitem
where
    o_orderkey = l_orderkey
    and o_totalprice :varies
and l_extendedprice :varies
group by
    l_shipmode
order by
    l_shipmode
  Up one level  
plan_diag * Plan Diagram * 1254 x 773 * (150KB)
reduced_diag * 1253 x 785 * (134KB)
cost_diag * Plan Cost Diagram * 1254 x 773 * (176KB)
card_diag * Plan Cardinality Diagram * 1254 x 773 * (171KB)
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 * (37KB)
  plan2  
  plan3  
Album last updated on 5/19/07 12:54 AM
Powered by JAlbum 7.1 and BluPlusPlus skin