Pergunta de entrevista da empresa Stratacent

SQL QUESTION was much prefered