ITotal Class
Exposes API's to return total of all non-NULL values in the group. The non-standard total() function is provided as a convenient way to work around this design problem in the SQL language. The result of total() is always a floating point value.
Item Index
Methods
and
-
column
Used to specify AND condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
ITotalClause Interface.
column
-
column
Used to provide name of column for which total will be calculated.
Parameters:
-
column
StringName of column.
Returns:
ITotal Interface.
execute
()
Object
Used to get total, this method should be called in last to calculate total.
Returns:
Return total.
executeAsync
-
callback
Used to get total asynchronous, this method should be called in last to calculate total.
Parameters:
-
callback
CallbackRequest Callback.
groupBy
-
columns
Used to specify GROUP BY statement in conjunction with the aggregate functions to group the result-set by one or more columns.
Parameters:
-
columns
StringName of columns.
Returns:
ITotal Interface.
having
-
column
Used to specify HAVING clause to SQL because the WHERE keyword could not be used with aggregate functions.
Parameters:
-
column
StringName of column on which condition need to be applied.
Returns:
ITotalClause Interface.
havingClause
-
havingClause
Used to provide manually created Where clause, instead of using API's.
Parameters:
-
havingClause
StringWhere clause.
Returns:
ITotal Interface.
or
-
column
Used to specify OR condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
ITotalClause Interface.
where
-
column
Column name of which condition will be specified.
Parameters:
-
column
StringName of column.
Returns:
ITotalClause Interface.