Aggregates
Aggregate
countif()
Counts the total number of TRUE values for a boolean column
Reference: DuckDB 2.0.0
Alias of count_if()
Arguments & returns
countif(arg)
Aggregate
| Overload link | arg |
Returns |
|---|---|---|
| #01 | BOOLEAN |
HUGEINT |
Example
Haybarn WASM 2.0.0-rc12 · In your browser
Guide example · Run to view results.
Catalog examples
SELECT
countif (A);