On this page
  1. SELECT
  2. Syntax & Overview
  3. Notes & Best Practices
  4. Example

SELECT

Prev: clauses | Up: clauses | Next: `FROM`
Rel: clauses, SQL Query Execution Lifecycle
Ref: PostgreSQL — SQL Commands
Tags: #public #databases #sql #clauses #tier/core


Syntax & Overview

SELECT col1, expr AS alias FROM tbl;

Projects output columns, expressions, and window functions.

Notes & Best Practices

Example

SELECT id, email, LOWER(role) AS role
FROM users
WHERE active = TRUE;

Linked from

Related notes