(Code to create the test tables is at the bottom of this message.)
Given two tables:
SELECT * FROM test_users; +----+-------+ | ID | name | +----+----