clause
JOIN ON
Matches rows using an explicit predicate; multiple matches can multiply output rows. Example target: PostgreSQL 17 and SQLite (local fixture tested).
Formal Syntax & Structure
sql syntaxsql
JOIN table ON conditionWorking Example
Example Snippetsql
SELECT customers.name, orders.id FROM customers JOIN orders ON customers.id=orders.customer_id ORDER BY orders.id;