Pregunta de entrevista de Mollie

SQL question with joins, having, etc