比较过滤得问题, 一个表table字段1 字段2A 1B 1C 1D 1A 2X 2Y 2B 2Z 2从这里找出X 2Y 2Z 2怎么做? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select t.* from [table] t where t.字段2=2 and not exists(select 1 from [table] where 字段1=t.字段1 and 字段2=1) select * from [table] a where not exists(select 1 from [table] b where a.字段1=b.字段1 and b.字段2=1) 小弟刚买一个MSSQL2005 50M的数据库 但是我不知道怎么用!! 如何更新自动编号 附加数据库又出现问题!!! sqlserver专业版 日志不断增长的问题,请帮助 SqlServer2000 下的奇怪问题 SQL2005 SSIS问题 能否在存储过程返回的结果集基础上进行二次查询? 如何修改sql server的报错信息? *****請求幫忙***** sql表的选择问题(等待) 为什么索引能提高检索效率? 问
t.*
from
[table] t
where
t.字段2=2
and
not exists(select 1 from [table] where 字段1=t.字段1 and 字段2=1)