WHERE COLOR_NO like '%E%' and COLOR_NO not like '%E'
group by color_no
having count(*)>10
order by color_no
having用于组内筛选,筛选出数量(count)大于10的数据
select cname,course.cno,count(*) 不及格人数from course join sc on course.cno=sc.cno
where grade<60
group by cname,course.cno
having count(*)>10
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)