GroupBy
public final class GroupBy: Query, HavingRouter, OrderByRouter, LimitRouterA GroupBy represents the GROUP BY clause to group the query result. The GROUP BY clause is normally used with aggregate functions (AVG, COUNT, MAX, MIN, SUM) to aggregate the group of the values.
- 
                  
                  Creates and chain a Having object for filtering the aggregated values from the the GROUP BY clause. DeclarationSwift public func having(_ expression: ExpressionProtocol) -> HavingParametersexpressionThe expression. Return ValueThe Having object that represents the HAVING clause of the query. 
- 
                  
                  Creates and chains an OrderBy object for specifying the orderings of the query result. DeclarationSwift public func orderBy(_ orderings: OrderingProtocol...) -> OrderByParametersorderingsThe Ordering objects. Return ValueThe OrderBy object that represents the ORDER BY clause of the query. 
- 
                  
                  Creates and chains a Limit object to limit the number query results. DeclarationSwift public func limit(_ limit: ExpressionProtocol) -> LimitParameterslimitThe limit expression. Return ValueThe Limit object that represents the LIMIT clause of the query. 
- 
                  
                  Creates and chains a Limit object to skip the returned results for the given offset position and to limit the number of results to not more than the given limit value. DeclarationSwift public func limit(_ limit: ExpressionProtocol, offset: ExpressionProtocol?) -> LimitReturn ValueThe Limit object that represents the LIMIT clause of the query. 
 GroupBy Class Reference
        GroupBy Class Reference