Quantcast
Channel: Comments on: SQL SERVER – Interesting Observation about Order of Resultset without ORDER BY
Browsing all 12 articles
Browse latest View live

By: Praveen

This is great. But one doubt here how non-clustered index wins over clustered? Any idea.

View Article



By: 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 Article

By: Ponnu

Nice to know, good one Dave.

View Article

By: 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 Article

By: 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 Article


By: 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 Article

By: 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 Article

By: 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 Article


By: 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 Article


By: 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 Article

By: 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 Article

By: 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
Browsing all 12 articles
Browse latest View live




Latest Images