下面是我的SQL查詢其對3000行運行,其需要6分鐘運行 指標defiened WHERE子句作爲WLL在使用內部連接的所有列 請幫我幫助在SQL所需查詢
SELECT auditData.id,nstmp.ProviderMaster_ID as CDRComment,Auditdata.Calltypetag
from Auditdata AuditData
inner join NoSeriesMaster_temp nstmp on nstmp.NosereisTemp like '91%'
where Auditdata.id in (select id from auditdata_temp1 where tatcalltype is null)
and AuditData.CallTolen=12 and Auditdata.Callto like nstmp.NosereisTemp + '%' and AuditData.AuditMaster_ID=74
thanx提前
您使用MS SQL Server嗎?你能發佈執行計劃嗎? – Justin 2009-07-28 09:08:38