Name
total() — Return the numerical total
Common Usage
total( number )Description
The total() aggregate computes the sum or total of
all the non-NULL
values. Any non-NULL number
that is not an integer will be interpreted as a
floating-point value. The number
total() aggregate is specific to SQLite.
Unlike sum(), the total() aggregate will
always return a floating-point value.
Even if all
expressions are NULL, number
total() will still return a 0.0.
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.
Read now
Unlock full access