Album » OptB » q11  (7 Slides)     [Page 1 of 1] :: Jump To  
select
    ps_partkey,
    sum(ps_supplycost * ps_availqty) as value
from
    partsupp,
    supplier,
    nation
where
    ps_suppkey = s_suppkey
    and s_nationkey = n_nationkey
    and n_name = 'GERMANY'
    and ps_supplycost :varies
    and s_acctbal :varies
group by
    ps_partkey having
        sum(ps_supplycost * ps_availqty) > (
            select
                sum(ps_supplycost * ps_availqty) * 0.0001000000
            from
                partsupp,
                supplier,
                nation
            where
                ps_suppkey = s_suppkey
                and s_nationkey = n_nationkey
                and n_name = 'GERMANY'
        )
order by
    value desc

  Up one level  
plan_diag * Plan Diagram * 1254 x 773 * (146KB)
reduced_diag * 1253 x 785 * (133KB)
cost_diag * Plan Cost Diagram * 1254 x 773 * (165KB)
card_diag * Plan Cardinality Diagram * 1254 x 773 * (168KB)
plan1 * PLAN 1 * 1254 x 867 * (57KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1243 x 867 * (59KB)
plan3 * PLAN 3 * 1243 x 867 * (57KB)
  plan2  
  plan3  
Album last updated on 5/19/07 12:54 AM
Powered by JAlbum 7.1 and BluPlusPlus skin