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 can you fetch alternate records from a table?
Explain about the command-line tool SQLCMD?
Can a table be created inside a trigger?
What is an execution plan? When would you use it?
What is the main purpose of having conversation group?
Can I use sql azure as a backup with log shipping or database mirroring?
Explain “not null constraint” in sql server?
What are the advantages of using cte?
What is function of master database?
1)what is the difference between Reinitializing a Subscription and synchronization the subscription? 2)when to use reinitializing ? 3)when to use synchronization? 4)when adding table or deleting a table what to do?(reinz.. or syn) 5)when adding a column what to do?
Do you know what is a with(nolock)?
Where are SQL server users names and passwords are stored in sql server?
What happens if ntwdblib.dll is missing on your machine?
Explain indexing and what are the advantages of it?
Explain the microsoft sql server delete command? : SQL Server Architecture