concept

Relations and tuples

A mathematical relation is a set of tuples over named attributes. SQL query results can contain duplicates and NULL; row order is not guaranteed without ORDER BY.

Formal Syntax & Structure

sql syntaxsql
Conceptual

Working Example

Example Snippetsql
SELECT 1 AS id UNION ALL SELECT 1;
SQL Reference