Single Table with Alias
Multiple Tables (Implicit Cross Join)
Comma-separated tables produce a cartesian product. Use aWHERE predicate to filter to matching rows:
Derived Table (Subquery in FROM)
A subquery in theFROM clause must have an alias:
CTE References
Tables defined in aWITH clause can be referenced in FROM like any other table:
VALUES Constructor
UseVALUES to produce an inline table:
INNER JOIN
Join on an equality or arbitrary condition:Outer Joins
Join Chains (3+ Tables)
Non-Equi Join Predicates
Join conditions are not limited to equality:Join with Derived Table
Not Supported
CROSS JOINkeyword syntax (use comma syntax instead)NATURAL JOINLATERALtable references