Pregunta de entrevista de Amazon Robotics

SQL aggregation coding, including group by and having.