Pregunta de entrevista de Loyalty Prime

SQl GroupBy Query with Having. Tableau Questions.