module Clear::SQL::Query::GroupBy
Direct including types
Defined in:
clear/sql/query/group_by.crInstance Method Summary
-
#clear_group_bys
Clear the group by clause
-
#group_by(*column_list)
Build a GROUP BY clause
- #group_bys : Array(Symbolic)
Instance Method Detail
def group_by(*column_list)
#
Build a GROUP BY clause
query.select("department", "position").from(:users).group_by("department", "position")
# SELECT * FROM "users" GROUP BY department, position