An inner join combines rows from two relations only when their join condition matches. It is the default join and fits workflows that combine readings with system or pricing data. section 3.4.4
Use an inner join to:
- Write shared-key joins concisely with USING; express different key names or conditions with ON. section 3.4.4
Join two virtual tables
SELECT * FROM (VALUES (1, 'a1'), (2, 'a2'), (3, 'a3')) l(id, nameA) JOIN (VALUES (1, 'b1'), (2, 'b2'), (4, 'b4')) r(id, nameB) USING (id); The result contains ids 1 and 2 only: (1, a1, b1) and (2, a2, b2).


