One of my blog reader have asked a query on SQL Server query execution order. Thought of writing an article on the same.
Here is the order of execution for your select statement.
That's really awesome processing of your query. My only concern is, why we are grouping the data afterwards we are having another filter criteria like having. May be having can be placed front before grouping it.
Anyway, I will put this question to Microsoft.
For our example,
The order of execution is,
Cheers,
Venkatesan prabu .J
http://venkattechnicalblog.blogspot.com/
http://www.kaashivinfotech.com/
|
Here is the order of execution for your select statement.
|
That's really awesome processing of your query. My only concern is, why we are grouping the data afterwards we are having another filter criteria like having. May be having can be placed front before grouping it.
Anyway, I will put this question to Microsoft.
For our example,
|
|
Cheers,
Venkatesan prabu .J
http://venkattechnicalblog.blogspot.com/
http://www.kaashivinfotech.com/

Join the conversation! Your thoughts help the community grow.