what is the order of execution of where,having,group by in
select stement
Answer Posted / bobby
The order of syntax for SELECT statement is
Select Top| Distinct
From Join
On
Where
Group By
Having
Oder By
But the order of execution of SELECT statement is
1.From
2.On
3.Join
4.Where
5.Group By
6.Having
7.Distinct
8.Select
9.Order By
10.Top
| Is This Answer Correct ? | 30 Yes | 2 No |
Post New Answer View All Answers
How do I change my passwords (database, LDAP, and so on) without causing an outage?
What are the types of indexes?
What do you understand by triggers and mention the different types of it?
Describe different Processing Modes offered by SSRS?
Do you know query execution plan?
How to rebuild the master database?
Why does sql studio use a single registered database repository? : sql server management studio
What is the difference between TRUNCATE and DROP?
Determine how to use the inserted and deleted pseudo tables?
How to modify the underlying query of an existing view?
what is memory-optimized nonclustered indexes
Why use “pivot” in sql server?
What are the advantages of using stored procedures in sql server?
What is tempdb in sql server?
What are the types of resultset?