© Alex Reprintsev 2018
Alex ReprintsevOracle SQL Revealedhttps://doi.org/10.1007/978-1-4842-3372-6_4

4. Aggregate Functions

Alex Reprintsev1 
(1)
London, UK
 

Aggregate functions return one row for each group defined in a group by clause. Both column names and expressions can be used to define groups, and one group is a set of rows with the same values for all expressions specified in “group by.” Each row belongs to one and only one group. If “group by” is not specified, then the entire recordset is a single group, and in this case query always returns one row even if the recordset to be grouped is empty.

Listing 4-1 shows how to calculate the total amount of presentations and count of working days for all authors based on tables introduced in Listing ...

Get Oracle SQL Revealed: Executing Business Logic in the Database Engine now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.