By: Praveen
This is great. But one doubt here how non-clustered index wins over clustered? Any idea.
View ArticleBy: Ivan Kotev
I guess the answer to that is because non-clustered index’s leaf nodes contain the information that allows SQL Server to navigate to the data pages it needs, usually the clustered index keys...
View ArticleBy: Jerry Hung
Very interesting I observe the same in AdventureWorks2008 on SQL 2008 SELECT TOP 10 * — Clustered index scan FROM person.Person BusinessEntityID 1 2 3 4 5 SELECT TOP 10 businessentityid — NonClustered...
View ArticleBy: Joe The DBA
The execution path is primarily determined by what percent of rows are expected to be returned from the query which is based off of the statistics generated on the table. There are cases where table or...
View ArticleBy: Travis Alltop
“I guess the answer to that is because non-clustered index’s leaf nodes contain the information that allows SQL Server to navigate to the data pages it needs, usually the clustered index keys...
View ArticleBy: SQL SERVER - Interesting Observation - Use of Index and Execution Plan...
[...] 30, 2008 by pinaldave Previously I wrote article about SQL SERVER – Interesting Observation about Order of Resultset without ORDER BY and I have received tremendous response from my readers by...
View ArticleBy: Andrew
One reason why query optimizer use non-clustered index in this case is probably because the non-clustered index already have the data needed by the query and SQL server doesn’t have to read the data...
View ArticleBy: Ashwani
Hello Sir: I have a question. When Order by is used for a column and there are multiple rows having same value for the column, then what criteria SQL server follows to show the rows....
View ArticleBy: SQL SERVER – Weekly Series – Memory Lane – #004 « SQL Server Journey with...
[...] Interesting Observation about Order of Resultset without ORDER BY In industry many developers avoid using ORDER BY clause to display the result in particular order thinking that Index is...
View ArticleBy: Without ORDER BY, You Can't Depend On the Order of Results | Michael J....
[…] [Ed: Pinal Dave is so prolific, I shouldn't have been surprised to find out that he has in fact blogged before on this very topic!] […]
View ArticleBy: Carlos Estupinan
What would be one reason for SQL Server to return a different result set at least once if I execute this several times “select top 10 * from person.person” ? And how can I replicate that in my local...
View Article
More Pages to Explore .....