wangdonghai的方法是可以的测试如下: create table #temp(stuName nvarchar(20),stuYear nvarchar(4),stuIsOK nvarchar(1))insert into #temp values('xxx','2007','1')insert into #temp values('xxx','2008','0')insert into #temp values('yyy','2007','0')insert into #temp values('yyy','2008','0')select stuName from #tempwhere stuYear in ('2007','2008') and stuIsOK='0'group by stuNamehaving count(*)>1drop table #temp--------结果------------- strName1 yyy