Album » OptA » q2  (18 Slides)     [Page 1 of 1] :: Jump To  
Query Template

select
    s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment
from
    part, supplier, partsupp, nation, region
where
    p_partkey = ps_partkey
    and s_suppkey = ps_suppkey
    and p_retailprice :varies
    and s_nationkey = n_nationkey
    and n_regionkey = r_regionkey
    and r_name = 'EUROPE'
    and ps_supplycost <= (
    select
            min(ps_supplycost)
        from
            partsupp, supplier, nation, region
        where
            p_partkey = ps_partkey
            and s_suppkey = ps_suppkey
            and s_nationkey = n_nationkey
            and n_regionkey = r_regionkey
            and r_name = 'EUROPE'
            and ps_supplycost :varies
    )
order by
    s_acctbal desc, n_name, s_name, p_partkey

Pictures
  Up one level  
plan_diag * Plan Diagram * 1277 x 769 * (182KB)
reduced_diag * 1255 x 773 * (171KB)
cost_diag * Plan Cost Diagram * 1277 x 769 * (211KB)
card_diag * Plan Cardinality Diagram * 1277 x 769 * (220KB)
plan1 * PLAN 1 * 1252 x 871 * (56KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1252 x 871 * (57KB)
plan3 * PLAN 3 * 1252 x 871 * (59KB)
plan4 * PLAN 4 * 1252 x 871 * (57KB)
plan5 * PLAN 5 * 1252 x 871 * (57KB)
plan6 * PLAN 6 * 1252 x 871 * (61KB)
  plan2  
  plan3  
  plan4  
  plan5  
  plan6  
plan7 * PLAN 7 * 1252 x 871 * (59KB)
plan8 * PLAN 8 * 1252 x 871 * (57KB)
plan9 * PLAN 9 * 1252 x 871 * (56KB)
plan10 * PLAN 10 * 1252 x 871 * (53KB)
plan11 * PLAN 11 * 1252 x 871 * (57KB)
  plan7  
  plan8  
  plan9  
  plan10  
  plan11  
plan12 * PLAN 12 * 1252 x 871 * (57KB)
plan13 * PLAN 13 * 1252 x 871 * (52KB)
plan14 * PLAN 14 * 1252 x 871 * (61KB)
  plan12  
  plan13  
  plan14  
Album last updated on 5/19/07 12:46 AM
Powered by JAlbum 7.1 and BluPlusPlus skin