Name
count() — Count the number of rows
Common Usage
count( expression )
count( * )Description
The count() aggregate counts the number of rows
with a non-NULL
. If expression
is given as an asterisk character (expression
*), the total number of rows in
an aggregate group will be returned, regardless of value. In
some situations, the computation for the count( * ) syntax can be
optimized and the result value can be computed without an actual
data scan.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access