1-- LEFT OUTER JOIN is equivalent to LEFT JOIN
2-- b.VALUE1 is null when ID not in table2 (idem for c.VALUE1 in table3)
3SELECT a.ID, a.NAME, b.VALUE1, c.VALUE1 FROM table1 a
4 LEFT OUTER JOIN table2 b ON a.ID = b.ID
5 LEFT OUTER JOIN table3 c ON a.ID = c.ID
6WHERE a.ID >= 1000;
7
8-- ⇓ Test it ⇓ (Fiddle source link)
1-- Rows with ID existing in both a, b and c
2-- JOIN is equivalent to INNER JOIN
3SELECT a.ID, a.NAME, b.VALUE1, c.VALUE1 FROM table1 a
4 JOIN table2 b ON a.ID = b.ID
5 JOIN table3 c ON a.ID = c.ID
6WHERE a.ID >= 1000;
7-- ⇓ Test it ⇓ (Fiddle source link)
1SELECT column-names
2 FROM table-name1 JOIN table-name2
3 ON column-name1 = column-name2
4 WHERE condition