Album » OptB » q10  (11 Slides)     [Page 1 of 1] :: Jump To  
select
    c_custkey,
    c_name,
    sum(l_extendedprice * (1 - l_discount)) as revenue,
    c_acctbal,
    n_name,
    c_address,
    c_phone,
    c_comment
from
    customer,
    orders,
    lineitem,
    nation
where
    c_custkey = o_custkey
    and l_orderkey = o_orderkey
    and o_orderdate >= date '1993-10-01'
    and o_orderdate < date '1994-01-01'
    and c_nationkey = n_nationkey
    and c_acctbal :varies
    and l_extendedprice :varies
group by
    c_custkey,
    c_name,
    c_acctbal,
    c_phone,
    n_name,
    c_address,
    c_comment
order by
    revenue desc

  Up one level  
plan_diag * Plan Diagram * 1254 x 773 * (162KB)
reduced_diag * 1253 x 785 * (145KB)
cost_diag * Plan Cost Diagram * 1254 x 773 * (192KB)
card_diag * Plan Cardinality Diagram * 1254 x 773 * (184KB)
plan1 * PLAN 1 * 1254 x 867 * (44KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1243 x 867 * (48KB)
plan3 * PLAN 3 * 1243 x 867 * (43KB)
plan4 * PLAN 4 * 1243 x 867 * (43KB)
plan5 * PLAN 5 * 1243 x 867 * (51KB)
plan6 * PLAN 6 * 1243 x 867 * (43KB)
  plan2  
  plan3  
  plan4  
  plan5  
  plan6  
plan7 * PLAN 7 * 1243 x 867 * (43KB)
  plan7  
Album last updated on 5/19/07 12:54 AM
Powered by JAlbum 7.1 and BluPlusPlus skin