用group by分组汇总积分number,然后用having限制积分的count要不少于3个,最后选出积分number。
select number from grade
group by number
having count(number) >= 3
用group by分组汇总积分number,然后用having限制积分的count要不少于3个,最后选出积分number。
select number from grade
group by number
having count(number) >= 3