Skip to content
ClickHouse Docs

regr_count

Autogenerated from ClickHouse system tables

Introduced in: v26.9.0

Counts the rows where neither y nor x is NULL.

Syntax

regr_count(y, x)

Arguments

Returned value

Returns the number of non-null pairs. UInt64

Examples

Basic usage

SELECT regr_count(y, x)
FROM VALUES('x Float64, y Float64', (1, 2), (2, 4), (3, 6), (4, 8))
┌─regr_count(y, x)─┐
│                4 │
└──────────────────┘