Pergunta de entrevista da empresa Cartesian Consulting

Related to SQL, and my previous projects.