COUNT
Returns the total number of records for the specified expression.
Syntax
COUNT(expression any primitive) → bigint
expression: The expression to evaluate the number of records. This parameter can either be * or a column name of any primitive data type. Using asterisk (*) will include rows that contain
NULL
. Specifying a column name will ignore rows haveNULL
in that column.
Examples
Aggregate function example
Window function example
Last updated