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
270 9.5 Analysis in Practice
Cursor Expressions
A cursor expression simply allows the embedding of a cursor or pre-exe-
cuted query within a calling query, as in the following example script:
SELECT R.REGION
, CURSOR(
SELECT COUNTRY FROM COUNTRY
WHERE REGION_ID=R.REGION_ID
)
FROM REGION R;
A query, such as the script above, effectively joins the REGION and
COUNTRY tables properly, but returns each region containing all coun-
tries included within each region, sorted by country within region as shown
in Figure 9.13.
9.5 Analysis in Practice
This section will examine some examples using analysis functions and spe-
cialized analytical syntax.
Figure 9.13
An example ...
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