Pergunta de entrevista da empresa Seagate Technology

Basic SQL question and join. Then talking about log n of the query.