Album » OptB » q20  (6 Slides)     [Page 1 of 1] :: Jump To  

select
    s_name,
    s_address
from
    supplier,
    nation
where
    s_suppkey in (
        select
            ps_suppkey
        from
            partsupp
        where
            ps_partkey in (
                select
                    p_partkey
                from
                    part
                where
                    p_name like 'forest%'
            )
            and ps_availqty < (
                select
                    0.5 * sum(l_quantity)
                from
                    lineitem
                where
                    l_partkey = ps_partkey
                    and l_suppkey = ps_suppkey
                    and l_extendedprice :varies
                    
            )
    )
    and s_nationkey = n_nationkey
    and s_acctbal :varies
    and n_name = 'AMERICA'
order by
    s_name

  Up one level  
plan_diag * Plan Diagram * 1254 x 773 * (144KB)
reduced_diag * 1253 x 785 * (138KB)
cost_diag * Plan Cost Diagram * 1254 x 773 * (172KB)
card_diag * Plan Cardinality Diagram * 1254 x 773 * (167KB)
plan1 * PLAN 1 * 1254 x 867 * (52KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1243 x 867 * (48KB)
  plan2  
Album last updated on 5/19/07 12:55 AM
Powered by JAlbum 7.1 and BluPlusPlus skin