Advertisement
Guest User

data_warehouse_jarir

a guest
Sep 9th, 2019
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Praktikum 2
  2.  
  3. ALTER SESSION SET star_transformation_enabled=FALSE;
  4. EXPLAIN PLAN FOR SELECT /*+ norewrite */ t.calendar_month_desc, p.prod_subcategory, c.cust_city, SUM(s.amount_sold) AS dollars FROM sales s, times t, products p, customers c WHERE s.time_id = t.time_id AND s.prod_id = p.prod_id AND s.cust_id = c.cust_id AND c.cust_city='Ravensburg' AND p.prod_category IN ('Hardware','Photo') AND t.fiscal_year IN (2000,1999) GROUP BY p.prod_subcategory, calendar_month_desc, c.cust_city;
  5. SET LINESIZE 160;
  6. SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement