Left-duplicate indexes 
At Kim Tripp's PASS session on indexing and covered indexes, she more-or-less proved that wider is better for indexes, within reason and searchability.  It's better to have the index (Column1, Column2, Column3) than the index (Column1) and then a (Column1, Column2) and then a (Column1, Column2, Column3).  And the first two of that set are redundant and don't provide any significant performance improvement over a wider index in most applications.Finding cases where you have multiple indexes like that isn't a trivial problem.  Here's the answer I came up with.  This particular query finds cases of a (Column1, Column2....ColumnN) with a (Column1) but it could be pretty easily modified to do a multiple left side key required.  It's all filtering, just add [3] and the appropriate group by/max and you're set.  And once again, yes, you could do this without a temp table, but the temp table's kind of interesting on its own.第二段怎么翻译,看不懂了,谢谢 

解决方案 »

  1.   

    使用google吧,难道是毕业设计的英文翻译?
      

  2.   

    TO:影子老师,不是了。看到一篇看不懂了,只好请教来了。GOOGLE 的是孤立的单词,都不通http://weblogs.sqlteam.com/chrism/archive/2009/11/12/Left-duplicate-indexes.aspx
      

  3.   

    大概意思是说 找到你哪里用到multiple indexes问题就容易解决了,一般的多列和一列的查询很容易就成了左键查询,只需要加一个[3]或者是适当的用一下group,你也可以不用临时表
    我英语也不太好,希望理解的对...