|< < 24 > >|

Aggregation

Counting rows

How many rows are in table T?

Detailed semantics

  • NULLs: We are counting rows, regardless of values. Presence of NULLs have no impact on count(*).

  • Duplicates: Duplicate rows are counted as distinct.

T
X Y
110
221
222
330
330
4NULL
NULLNULL

jao=# select count(*) from t; count ------- 7

|< < 24 > >|