第一题: SELECT name FROM test2 GROUP BY name HAVING count(name)= DATEDIFF(CURDATE(),STR_TO_DATE("20210728","%Y %m %d"))+1 and MIN(pay_amount)>80