sum ( smallint ) → bigintComputes the sum of the non-null input values.
Functions / Aggregate Functions
Computes the sum of the non-null input values.
Reading PG 18current·documented in 27 of 27 versions, 7.1 to 20
Signatures & examples
sum ( integer ) → bigintComputes the sum of the non-null input values.
sum ( bigint ) → numericComputes the sum of the non-null input values.
sum ( numeric ) → numericComputes the sum of the non-null input values.
sum ( real ) → realComputes the sum of the non-null input values.
sum ( double precision ) → double precisionComputes the sum of the non-null input values.
sum ( interval ) → intervalComputes the sum of the non-null input values.
sum ( money ) → moneyComputes the sum of the non-null input values.
Version history 6
Definition snapshot: b7bd9cda · English manual source