Skip to content

Returns the number of rows or non-NULL values.

func.count()
func.count()
COUNT()
SELECT COUNT(*) FROM employees;
┌──────────┐
count(*) │
├──────────┤
1000
└──────────┘
SELECT COUNT(DISTINCT department) FROM employees;
┌──────────────────────────────┐
count(distinct department) │
├──────────────────────────────┤
5
└──────────────────────────────┘