sql语句如何写? select studentid from course='数学' or course='语文'group by studentidhaving count(distinct course)=2 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select studentid from 表where course='数学' or course='语文'group by studentidhaving count(distinct course)=2 select distinct studentid from 表名 where course='数学' or course='语文' select studentid from t where course='数学课' or course='语文课'group by studentidhaving count(*)=2 SQL多表连接问题 求一条sql语句08年和09年工资汇总 sql ser 2000网络访问方法? 查询所有下级用户 请问在sql server2000中插入记录时是不是不可以同时插入多条? 如果让某一列的值减少一个值. 求一SQL語句 怎样删除重复的记录行呢?急 在php下操作如何sql server 如何分页显示啊,有没有具体的例子啊! 请教怎么取得存储过程中的查询记录集,字段和表 都是动态的 请高手帮我看看这个SQL语句该怎么写? sql语句可以实现下面的功能吗?
where course='数学' or course='语文'
group by studentid
having count(distinct course)=2
group by studentid
having count(*)=2