是哪里有错吗,查询不出来
缺逗号
那说明没有大于2次的
select tname 姓名,scores 分数,count(tname) 次数,
case when scores>=60 then '通过' else '不通过' end 结果
from sheet4 group by tname,scores
having count(tname) >2
差个逗号