How to do WHERE clause BEFORE INNER JOIN
问题 How I do query like this ? select Distinct Station , Slot , SubSlot, CompID , CompName from DeviceTrace as DT DT.DeviceID = '1339759958' inner join CompList as CL where and DT.CompID = CL.CompID I need to do DT.DeviceID = '1339759958' before I start with the inner join. I work with sql server. 回答1: I find it difficult to believe that it makes any difference. The query optimiser should apply the predicate before the join if it calculates that it is more efficient to do so. The only