Album » OptA » q10  (6 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 * 1277 x 769 * (144KB)
reduced_diag * 1255 x 773 * (133KB)
cost_diag * Plan Cost Diagram * 1277 x 769 * (165KB)
card_diag * Plan Cardinality Diagram * 1277 x 769 * (167KB)
plan1 * PLAN 1 * 1252 x 871 * (45KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1252 x 871 * (45KB)
  plan2  
Album last updated on 5/19/07 3:09 AM
Powered by JAlbum 7.1 and BluPlusPlus skin