Pergunta de entrevista da empresa ServiceNow

Use SQL to join two tables with some trickery