Album » OptD » q2  (7 Slides)     [Page 1 of 1] :: Jump To  
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

  Up one level  
plan_diag * Plan Diagram * 1252 x 786 * (149KB)
reduced_diag * 1258 x 781 * (135KB)
cost_diag * Plan Cost Diagram * 1252 x 786 * (163KB)
card_diag * Plan Cardinality Diagram * 1252 x 786 * (181KB)
plan1 * PLAN 1 * 1256 x 870 * (47KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1256 x 870 * (47KB)
plan3 * PLAN 3 * 1256 x 870 * (47KB)
  plan2  
  plan3  
Album last updated on 5/19/07 1:04 AM
Powered by JAlbum 7.1 and BluPlusPlus skin