Sample Picasso Diagrams » QT2  (7 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

Optimizer Diagrams
  Up one level  
Plan Diagram * 1919 x 1125 * (94KB)
Reduced Diagram (20%) * 1919 x 1125 * (95KB)
Cardinality Diagram * 1919 x 1125 * (98KB)
Cost Diagram * 1919 x 1125 * (98KB)
Plan1 * 1919 x 1125 * (76KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1919 x 1125 * (82KB)
Plan3 * 1919 x 1125 * (83KB)
  Plan2  
  Plan3  
Album last updated on 2/9/09 9:58 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science