Pregunta de entrevista de American Express

Having and where in SQL