急问 在线============================================高手 select xh,xm,bjbmfrom 表 awhere xh in (select xh from 表 where zcj < 60 group by xh having count(*) >5) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select xh,xm,count(*) from 表 froup by xh,xm where zcj<60 having count(*)>5 select xh,xm,bjbm,sum(case when zcj<60 then 1 else 0 end) as 不及格数from tgroup by xh,xm,bjbm having sum(case when zcj<60 then 1 else 0 end)>=5 SELECT xh,xm,bjb from table where zcj<60 group by xh,xm,bjbm having count(*)>5 lsxaa(小李铅笔刀) 对头 SQL多表统计总数?请大家帮帮忙? 查询比平均工资最低的那个部门的最高工资 高 的所有职工 高分,数据库设计问题,多个小表合成一个大表效率高,还是多个小表效率高。 数据库中有两条记录的各列数值都一模一样,请问怎样删除一条? 如何删除其他用户的数据库 附加数据库后出现select问题 SQL字段中Char問題 远程连接服务器速度慢的原因 如何在存储过程中,给变量赋值 怎么把日期型的字段转换成字符串? 在线等,请高手进来?-----------------------------------------------------------哭。。。。 外键强制约束的问题
from t
group by xh,xm,bjbm
having sum(case when zcj<60 then 1 else 0 end)>=5
对头