Skip to Content
Oracle SQL Revealed: Executing Business Logic in the Database Engine
book

Oracle SQL Revealed: Executing Business Logic in the Database Engine

by Alex Reprintsev
April 2018
Intermediate to advanced
393 pages
6h 8m
English
Apress
Content preview from Oracle SQL Revealed: Executing Business Logic in the Database Engine
© 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 ...

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 Database 11g Performance Tuning Recipes: A Problem-Solution Approach

Oracle Database 11g Performance Tuning Recipes: A Problem-Solution Approach

Sam R. Alapati, Darl Kuhn, Bill Padfield

Publisher Resources

ISBN: 9781484233726Purchase LinkPublisher Website