Results for “columns”
Small, practical examples. Search by task or narrow things down below.
Name an intermediate query with a CTE
Make a filtered result reusable within one statement.
CTE✓ Tested
Normalize ASCII text to lowercase
SQL: LOWER is useful for display normalization; indexed case-insensitive search depends on the database collation and schema.
SQL✓ Tested
Normalize ASCII text to lowercase
SQL Server: LOWER is useful for display normalization; indexed case-insensitive search depends on the database collation and schema.
SQL Server✓ Tested
Normalize ASCII text to lowercase
Postgres: LOWER is useful for display normalization; indexed case-insensitive search depends on the database collation and schema.
Postgres✓ Tested
Normalize ASCII text to lowercase
SQLite: LOWER is useful for display normalization; indexed case-insensitive search depends on the database collation and schema.
SQLite✓ Tested
Normalize ASCII text to uppercase
SQL: UPPER changes character case under the database’s text rules.
SQL✓ Tested
Normalize ASCII text to uppercase
SQL Server: UPPER changes character case under the database’s text rules.
SQL Server✓ Tested
Normalize ASCII text to uppercase
Postgres: UPPER changes character case under the database’s text rules.
Postgres✓ Tested
Normalize ASCII text to uppercase
SQLite: UPPER changes character case under the database’s text rules.
SQLite✓ Tested
Number a sorted result
Assign a row number without changing stored data.
row_number✓ Tested
Number rows within each group
Assign ordered row numbers with a window function.
row_number✓ Tested
Page an ordered result
Skip rows and fetch a bounded page.
OFFSET✓ Tested