docs/sql/statements/select.md
The SELECT statement is used to query tables in some catalog.
Evaluate a single expression.
SELECT 1 + 1;
Select all columns and rows from table T.
SELECT * FROM T;
Select columns a, b, and c from table T.
SELECT a, b, c FROM T;
Select columns, applying scalar functions foo and bar.
SELECT foo(a), bar(b) FROM T;
Count the number of rows whose column a is non-null.
SELECT COUNT(a) FROM T;
Count the number of rows in each group b.
SELECT COUNT(*), b FROM T GROUP BY b;
!!! warning "Work in Progress"
The SQL Reference documents are a work in progress.