Pregunta de entrevista de Jet

Write the SQL code for joining these two tables.