一条查询,求解!!! 表名:RoleID,CorpID,Enabled1 2 12 2 13 3 14 3 0查询处enabled全为1的Corpid的值?怎么写呢? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 seelct t.* from Role t where not exists(select 1 from Role where CorpID=t.CorpID and Enabled!=1) select corpid from role where enabled<>1; select corpid from role where enabled='1' ID,CorpID,Enabled1 2 12 2 13 3 14 3 0select * from tb where corpid not in (select distinct corpid from tb where enabled = 0) select Corpid from Role where Enabled = '1' select corpid from role where sum(Cast(enabled as int))/(count(*)*1.0)=1 group by corpid sql server 数据源配置错误 奇怪,很点单的问题 求一条sql语句? Select where 可不可以这样使用? 怎么样能选出数据库表的字段(在不知道表有什么字段的情况下) 哪位大侠能帮我解决这个问题,关于启动全文索引的!解决即结贴! 一个 sql2005插入问题 ? 复制问题 怎么办?大家快帮帮我吧 acess数据库导入sql server中,其中的ID不能自己增长了,如何做得像ACCESS一样,自己长ID SQL Server安装问题 急啊``````````````````````````````````````` 请问以下几个过程用什么语句可以实现?
1 2 1
2 2 1
3 3 1
4 3 0
select * from tb where corpid not in (select distinct corpid from tb where enabled = 0)