Use Oracle 10g Sql’S Group By Extensions To Improve Aggregation Processing

1,181 views
1,122 views

Published on

Presented at Collaborate 06 Conference (Nashville, TN)

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,181
On SlideShare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Use Oracle 10g Sql’S Group By Extensions To Improve Aggregation Processing

    1. 1. Jeffrey Chan Sunrise Business Solutions Session # 915 Use Oracle Database 10g SQL’s GROUP BY Extensions to Improve Aggregation Processing
    2. 2. Overview <ul><li>ROLLUP Extension </li></ul><ul><li>CUBE Extension </li></ul><ul><li>GROUPING Functions </li></ul><ul><li>Composite Columns </li></ul><ul><li>GROUPING SETS Expression </li></ul><ul><li>Concatenated Groupings </li></ul>
    3. 3. ROLLUP & CUBE Extensions <ul><li>ROLLUP extension </li></ul><ul><ul><li>Provides a way to create a subtotal for each level in a hierarchy </li></ul></ul><ul><ul><li>Partial rollup </li></ul></ul><ul><li>CUBE extension </li></ul><ul><ul><li>Generates subtotals for all the combinations of the grouping columns </li></ul></ul><ul><ul><li>Partial cube </li></ul></ul>
    4. 4. GROUPING Functions <ul><li>GROUPING </li></ul><ul><ul><li>Sets apart the subtotals from the result set </li></ul></ul><ul><li>GROUPING_ID </li></ul><ul><ul><li>Similar to GROUPING function </li></ul></ul><ul><ul><li>Takes multiple GROUP BY columns as parameters </li></ul></ul><ul><ul><li>Returns a single number </li></ul></ul><ul><li>GROUP_ID </li></ul><ul><ul><li>Distinguishes duplicate groupings </li></ul></ul>
    5. 5. Composite Columns <ul><li>Specifies grouping columns to be treated as unit </li></ul><ul><li>Can be used in both ROLLUP and CUBE extensions </li></ul>
    6. 6. GROUPING SETS Expression <ul><li>Enables the selection of specific groupings </li></ul><ul><li>Can be used in conjunction with composite columns, ROLLUP and CUBE extensions </li></ul>
    7. 7. Concatenated Groupings <ul><li>Produces the cross-product of groupings from each grouping set </li></ul><ul><li>Can be used in conjunction with composite columns, ROLLUP and CUBE extensions </li></ul>
    8. 8. Recap <ul><li>ROLLUP Extension </li></ul><ul><li>CUBE Extension </li></ul><ul><li>GROUPING Functions </li></ul><ul><li>Composite Columns </li></ul><ul><li>GROUPING SETS Expression </li></ul><ul><li>Concatenated Groupings </li></ul>
    9. 9. Thank You <ul><li>Please fill out the evaluation form </li></ul><ul><li>Contact Information </li></ul><ul><ul><li>Jeffrey Chan </li></ul></ul><ul><ul><li>Sunrise Business Solutions </li></ul></ul><ul><ul><li>[email_address] </li></ul></ul>

    ×