IMin Class
Exposes API's to returns the minimum non-NULL value of all values in the group. The minimum value is the first non-NULL value that would appear in an ORDER BY of the column. Aggregate min() returns NULL if and only if there are no non-NULL values in the group.
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:
IMinClause Interface.
column
-
column
Used to provide name of column for which max will be calculated.
Parameters:
-
column
StringName of column.
Returns:
IMin Interface.
execute
()
Object
Used to get minimum, this method should be called in last to calculate minimum.
Returns:
Return minimum.
executeAsync
-
callback
Used to get minimum asynchronous, this method should be called in last to calculate minimum.
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
ArrayName of columns.
Returns:
IMin 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:
IMinClause Interface.
havingClause
-
havingClause
Used to provide manually created Where clause, instead of using API's.
Parameters:
-
havingClause
StringWhere clause.
Returns:
IMin Interface.
or
-
column
Used to specify OR condition between where clause.
Parameters:
-
column
StringName of column on which condition need to be specified.
Returns:
IMinClause Interface.
where
-
column
Column name of which condition will be specified.
Parameters:
-
column
StringName of column.
Returns:
IMinClause Interface.