Pergunta de entrevista da empresa Visa Inc.

SQL question based on joins and sub-query