Query object aggregate functions
You can call the aggregate methods of the Query
object:
select(sum(s.gpa) for s in Student)
Is equal to the following query:
select(s.gpa for s in Student).sum()
Here is the list of the aggregate functions:
Quety.group_concat()