Album » OptD » q17  (6 Slides)     [Page 1 of 1] :: Jump To  
select
    sum(l_extendedprice) / 7.0 as avg_yearly
from
    lineitem,
    part
where
    p_partkey = l_partkey
    and p_retailprice :varies
    and l_quantity <= (
        select
            0.2 * avg(l_quantity)
        from
            lineitem
        where
            l_partkey = p_partkey
            and l_extendedprice :varies
    )

  Up one level  
plan_diag * Plan Diagram * 1252 x 786 * (139KB)
reduced_diag * 1258 x 781 * (130KB)
cost_diag * Plan Cost Diagram * 1252 x 786 * (165KB)
card_diag * Plan Cardinality Diagram * 1252 x 786 * (162KB)
plan1 * PLAN 1 * 1256 x 870 * (30KB)
  plan_diag  
  reduced_diag  
  cost_diag  
  card_diag  
  plan1  
plan2 * PLAN 2 * 1256 x 870 * (29KB)
  plan2  
Album last updated on 5/19/07 1:07 AM
Powered by JAlbum 7.1 and BluPlusPlus skin