SQL 2023 · Aggregation and window functions

Count rows

Count all rows, or only non-NULL values of a column with COUNT(column).

SELECT COUNT(*) FROM orders;

Official SQL 2023 documentation

More aggregation and window functions commands

All aggregation and window functions commands · SQL 2023 cheatsheet

Was this page helpful?