Chapter 5. Aggregate Functions, GROUP BY, and HAVING

In the last two chapters, you learned about character functions, number functions, date functions, and miscellaneous functions, all single-row functions. In this chapter, you will learn about aggregate functions, which work on groups of rows. The most commonly used aggregate functions are discussed in this chapter. Aggregate functions allow you to generate summary data for a group of rows to obtain totals, averages, counts, minimum values, and maximum values. In Chapter 16, “Exploring Data Warehousing Features,” you will learn about advanced SQL aggregation topics involving the ROLLUP and ...

Get Oracle® SQL by Example, Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.