Skip to Main Content
Oracle Data Warehouse Tuning for 10g
book

Oracle Data Warehouse Tuning for 10g

by Gavin JT Powell
April 2011
Intermediate to advanced content levelIntermediate to advanced
504 pages
16h 49m
English
Digital Press
Content preview from Oracle Data Warehouse Tuning for 10g
8.2
GROUP BY Clause Extensions 221
Chapter 8
GROUP BY l.city
UNION ALL
SELECT NULL AS City, NULL AS Industry, NULL AS Category
,SUM(s.transaction_amount) AS Amount
FROM sale s, location l, industry i, product p
WHERE l.city IN('New York','Los Angeles')
AND s.time_id=8
AND s.location_id = l.location_id
AND s.industry_id = i.industry_id
AND s.product_id = p.product_id
ORDER BY 1 DESC NULLS LAST, 2 DESC NULLS LAST
, 3 DESC NULLS LAST;
The result of this horribly complex query is shown in Figure 8.3, verify-
ing the identical result as Figure 8.2 when using the ROLLUP clause.
The entire query is not displayed in Figure 8.3 because there is simply
too much of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle 10g Data Warehousing

Oracle 10g Data Warehousing

Lilian Hobbs, Susan Hillson, Shilpa Lawande, Pete Smith
Expert Oracle Enterprise Manager 12c

Expert Oracle Enterprise Manager 12c

Kellyn Pot'vin, Anand Akela, Gokhan Atil, Bobby Curtis, Alex Gorbachev, Niall Litchfield, Leighton Nelson, Pete Sharman

Publisher Resources

ISBN: 9781555583354