Skip to main content

Advanced Grouping

  • Chapter
  • First Online:
Pro Oracle SQL
  • 1380 Accesses

Abstract

The GROUP BY clause is a venerable member of the SQL statement family. After learning basic SELECT statements, it is one of first specialized parts of SQL that many practitioners cut their teeth on when learning to create aggregations from raw data and transforming that data into useful information.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 64.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 84.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    If there are no rows in the table, GROUP BY CUBE() returns zero rows.

  2. 2.

    The NVL() function is used to provide a default value for sh.customers.cust_income_level so that output of examples may be easier to compare.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Karen Morton

About this chapter

Cite this chapter

Morton, K., Osborne, K., Sands, R., Shamsudeen, R., Still, J. (2013). Advanced Grouping. In: Pro Oracle SQL. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6221-3_7

Download citation

Publish with us

Policies and ethics