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
What is the order by used for?
Explain a differential backup?
you have developed an application which uses many stored procedures and triggers to update various tables users ocassionally get locking problems which tool is best suited to help you diagnose the problem? : Sql server administration
What do you mean by sql server 2005 express management tools?
Explain full-text indexing?
What is format parameter in ssrs?
Which tcp/ip port does the sql server run on? How can it be changed?
What happens when unicode strings concatenate with non-unicode strings?
What is thr feature of change data capture?
How to check what was the last restore transaction LSN in Log shipping or Mirroring? when we don't have a Monitor or witness server.
How to remove duplicate rows from table except one?
How can you check the version of sql server?
What is difference in performance between insert top (n) into table and using top with insert?
What are the different methods available under sqlcommand class to access the data?
What is Transparent Data Encryption?