© Ben Brumm 2019
Ben BrummBeginning Oracle SQL for Oracle Database 18chttps://doi.org/10.1007/978-1-4842-4430-2_24

24. Understanding Aggregate Functions

Ben Brumm1 
(1)
Melbourne, VIC, Australia
 
In the last chapter, you learned what a function was. You looked at a few examples of functions, such as LOWER, that performed a specific operation on a particular column’s value for every record. The LOWER function was used to convert every record’s last_name value into a lowercase version of the last_name.
SELECT id,
last_name,
LOWER(last_name)
FROM employee;
The results of this query show the last_name records in lowercase.

ID

LAST_NAME

LOWER(LAST_NAME)

1

JONES

jones

2

SMITH

smith

3

KING

king

4

SIMPSON

simpson

5

ANDERSON

anderson

6

COOPER

cooper

7

ADAMS

adams

8

SMITH

smith

9

PATRICK

Get Beginning Oracle SQL for Oracle Database 18c: From Novice to Professional 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.