Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. SELECT DISTINCT "date",
  2. Sum("daily_sales_y") "DAILY_SALES_Y",
  3. Sum("daily_sales_lyy") DAILY_SALES_LYY,
  4. Sum("daily_sales_m") DAILY_SALES_M,
  5. "businessdt_month",
  6. "businessdt_year",
  7. COALESCE("portfolio_role", ' SBU') "PORTFOLIO_ROLE",
  8. "prod_name",
  9. Sum("daily_sales_lym") "DAILY_SALES_LYM",,
  10. "reportfilter"
  11. FROM "c1"
  12. GROUP BY "date",
  13. "businessdt_month",
  14. "businessdt_year",
  15. "reportfilter",
  16. rollup( "prod_name", "portfolio_role" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement