SQLite Aggregate Functions
SQLite aggregate functions are mainly used for data statistics, such as count, sum, average, etc. Aggregate functions combined with grouping operations allow you to count data in more dimensions.
-
avg
The SQLiteavg()
function calculates the average of all specified values in a group and returns it. -
count
The SQLitecount()
function counts all the specified values in a group and returns it. -
group_concat
The SQLitegroup_concat()
function is an aggregate function that returns a string containing all specified values in the group, separated by commas. -
max
The SQLitemax()
function calculates the maximum value of all specified values in a group and returns it. -
min
The SQLitemin()
function computes the minimum value of all specified values in a group and returns it. -
sum
The SQLitesum()
function computes the sum of all specified values in a group and returns it.