Pregunta de entrevista de Cartesian Consulting

Related to SQL, and my previous projects.