Album » OptD » q11  (9 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 * 1252 x 786 * (166KB)
reduced_diag * 1258 x 781 * (132KB)
cost_diag * Plan Cost Diagram * 1252 x 786 * (188KB)
card_diag * Plan Cardinality Diagram * 1252 x 786 * (181KB)
plan1 * PLAN 1 * 1256 x 870 * (39KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1256 x 870 * (40KB)
plan3 * PLAN 3 * 1256 x 870 * (39KB)
plan4 * PLAN 4 * 1256 x 870 * (39KB)
plan5 * PLAN 5 * 1256 x 870 * (38KB)
  plan2  
  plan3  
  plan4  
  plan5  
Album last updated on 5/19/07 1:06 AM
Powered by JAlbum 7.1 and BluPlusPlus skin