select  distinct
a.[EnterPriseName],
a.[EnterPriseProvince], 
a.[EnterPriseCity],
a.[EnterPriseTel],
a.[EnterPriseFax],
a.[EnterPriseWeb],
a.[EnterPriseNo]
from [dbo].[EnterPrise] a 
where    a.checktag in (1) and 
a.enterpriseid in
(
select  pcb.EnterPriseId 
from [EnterPriseCodeBind] pcb inner join 
[dbo].[ProductType3] pc3 on pcb.code1=pc3.NO1 and pcb.code2=pc3.NO2 and pcb.code3=pc3.NO3
where pcb.Code3 is not null and  pcb.Code4 is not null  and  pcb.code1='01' and pcb.code2='02' and pc3.class='0102'
)  标注红色字体的条件,checktag 是数据库中的一个int类型字段,存储着0,1,2 
当我的条件是a.checktag in (0),
a.checktag in (2) 时执行速度挺快的,
但是a.checktag in(1)时速度要导1分30秒
如果写成 a.checktag in (0,1) 执行速度也是特别快。
究竟问题出在什么地方,求大神帮忙!  在线等急