Domanda di colloquio di KPMG

SQL question (but I don't remember question exactly)