Skip to content

Glossary: SQL Basics

SUM

An aggregate function that adds up a column or a calculation such as `price * stock`, skipping NULLs. It gives NULL when no rows match.

Where the book teaches it

Related terms

Aggregate functionCOALESCE