RIGHT JOIN in SQL returns all rows from the right table and matching rows from the left table. If a row in the right table has no matching row in the left table, the left table columns are filled with NULL. The execution flow starts by scanning each row in the right table, then tries to find matching rows in the left table based on the join condition. Matched rows are combined into the result. Unmatched right table rows still appear with NULLs for left table columns. This is different from LEFT JOIN, which returns all rows from the left table instead. The example query selects id and name from table A and city from table B, joining on A.id = B.a_id. The execution table shows step-by-step how each row from B is matched or not matched with A, and how the result rows are formed.