You are here: Re: Selecting MAX (Date) - Performance Question « MsSQL Server « IT news, forums, messages
Re: Selecting MAX (Date) - Performance Question

Posted by Erland Sommarskog on 05/06/06 00:16

Beowulf (beowulf_is_not_here@hotmail.com) writes:
> So, the SQL Server query optimizer is smart enough to figure out that
> the sub-query in the WHERE clause will return only a single value and is
> able to figure out that WHERE x IN (a) is the same as WHERE x = a.
> That's pretty cool.

That's a fairly trivial exercise for the optimizer, I'd say. :-)



--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация