第一种:常规 *** 作SELECTSUM(ddd) AS count_days,CASEWHEN aa.days >= 1AND aa.days < 3 THEN'1-3'WHEN aa.days >=