Sample Picasso Diagrams » QT9  (53 Slides)     [Page 1 of 4] :: Jump To  
Query Template

select
    n_name,
    o_year,
    sum(amount)
from
    (
        select
            n_name,
            YEAR(o_orderdate) as o_year,
            l_extendedprice * (1 - l_discount) - ps_supplycost * l_quantity as amount
        from
            part, supplier, lineitem, partsupp, orders, nation
        where
            s_suppkey = l_suppkey
            and ps_suppkey = l_suppkey
            and ps_partkey = l_partkey
            and p_partkey = l_partkey
            and o_orderkey = l_orderkey
            and s_nationkey = n_nationkey
            and p_name like '%green%'
            and s_acctbal :varies
            and ps_supplycost :varies
    ) as profit
group by
    n_name, o_year
order by
    n_name, o_year desc

Optimizer Diagrams
  You have reached the first page You have reached the first page      Up one level      Next page Last page  
Plan Diagram * 1920 x 1170 * (181KB)
Reduced Diagram (20%) * 1920 x 1170 * (157KB)
Cardinality Diagram * 1920 x 1170 * (179KB)
Cost Diagram * 1920 x 1170 * (182KB)
Plan1 * 1936 x 1186 * (112KB)
  Plan Diagram  
  Reduced Diagram (20%)  
  Cardinality Diagram  
  Cost Diagram  
  Plan1  
Plan2 * 1936 x 1186 * (125KB)
Plan3 * 1936 x 1186 * (125KB)
Plan4 * 1936 x 1186 * (125KB)
Plan5 * 1936 x 1186 * (112KB)
Plan6 * 1936 x 1186 * (112KB)
  Plan2  
  Plan3  
  Plan4  
  Plan5  
  Plan6  
Plan7 * 1936 x 1186 * (114KB)
Plan8 * 1936 x 1186 * (114KB)
Plan9 * 1936 x 1186 * (112KB)
Plan10 * 1936 x 1186 * (114KB)
Plan11 * 1936 x 1186 * (114KB)
  Plan7  
  Plan8  
  Plan9  
  Plan10  
  Plan11  
Album last updated on 2/9/09 9:57 PM
Powered by Jalbum 8.1 and BluPlusPlus skin
Indian Institute of Science