Problem Statement
How does a RIGHT JOIN relate to a LEFT JOIN?
Explanation
RIGHT JOIN keeps all rows from the right input and matches from the left; LEFT JOIN does the opposite. Swapping table order turns one into the other.
Most teams standardize on LEFT JOIN for readability and consistency.
Code Solution
SolutionRead Only
SELECT * FROM A LEFT JOIN B ON B.k = A.k; -- same rows as SELECT * FROM B RIGHT JOIN A ON B.k = A.k;
