我必须创建一个查询来解决此问题:单个客户一天购买的最大票数是多少?您的结果应包含3列(HippCode,购买日期和票数),结果中仅包含1行。 最佳答案 HippCode是个人身份吗?select HippCode, DateBought as 'Date of Purchase', count(*) as 'Number of Tickets' from ticket group by HippCode, DateBought order by count(*) desc LIMIT 1