Domanda di colloquio di Saviynt

SQL question based on joins, group by and having