Skip to main content

Single Table with Alias

Quoted table names and aliases are supported when DynamoDB identifiers include special characters or exact-case names:

Multiple Tables (Implicit Cross Join)

Comma-separated tables produce a cartesian product. Use a WHERE predicate to filter to matching rows:

Derived Table (Subquery in FROM)

A subquery in the FROM clause must have an alias:

CTE References

Tables defined in a WITH clause can be referenced in FROM like any other table:
See Subqueries and CTEs for full CTE syntax.

VALUES Constructor

Use VALUES 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 JOIN keyword syntax (use comma syntax instead)
  • NATURAL JOIN
  • LATERAL table references