1
kudos
spam Kudos Remove

The optimiser should understand that year(datecolumn) is correlated to the datecolumn

published 416 days, 23 hours, 11 minutes ago posted by sasa 426 days, 1 hour, 48 minutes ago
Saturday, April 02, 2011 8:33:42 AM GMT Thursday, March 24, 2011 5:55:50 AM GMT
If you have a query such as select year ( OrderDate ) yr , count ( 1 ) from AdventureWorks2008 . Sales . SalesOrderHeader group by year ( OrderDate ) and you have an index on OrderDate you will find that even though the query optimiser could do a stream...(read more)
category: News | clicked: 0 | | source: sqlblogcasts.com | show counter code
tags: Connect, Performance, Suggestions

No comments yet, be the first one to post comment.

To post your comment please login or signup