ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
what is the order of execution of where,having,group by in 
select stement
 Question Submitted By :: Chinnu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: what is the order of execution of where,having,group by in select stement
Answer
# 1
1. WHERE
2. GROUP BY
3. HAVING
 
Is This Answer Correct ?    5 Yes 1 No
Sri
 
  Re: what is the order of execution of where,having,group by in select stement
Answer
# 2
Execution-1- WHERE
Execution-2- GROUP BY
Execution-3- HAVING
 
Is This Answer Correct ?    4 Yes 0 No
Shivaraj
 
 
 
  Re: what is the order of execution of where,having,group by in select stement
Answer
# 3
where
group by
having
 
Is This Answer Correct ?    2 Yes 0 No
Visala
 
  Re: what is the order of execution of where,having,group by in select stement
Answer
# 4
First of all, 
when Group by and having clauses are there , the Where 
clause can't present there, so order of group by, having is 
respectively 
Group by 
Having
 
Is This Answer Correct ?    3 Yes 5 No
Bhagyashri Jain
 
  Re: what is the order of execution of where,having,group by in select stement
Answer
# 5
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 ?    3 Yes 0 No
Bobby
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
what is the cursor life span? Evalueserve5
i want only duplicates rows from coloumn ex. emp_id(colomn name)1,1,2,3,3,4,5,5. so i want only duplicates no. iFlex2
What is a trigger?  6
How to tune a stored procedure?  5
Following are some of the question related to below mentioned query? select e1.salary from employee3 e1 where 2= ( select count(distinct(e2.salary)) from employee3 e2 where e2.salary>=e1.salary ) 1) What the query returns? 2) How it works? - Detail explanation (what the sub query does, why it is (where 2=)....etc...Please?  3
Explain different isolation levels?  3
About DTS usage ? Cognizent2
What do you mean by COLLATION?  4
Which virtual table does a trigger use? TCS6
How to list all tables having unique constraints in any of the columns in a database.  1
Explain fundamentals of Data ware housing & OLAP?  1
What is the difference between a stored procedure and a user defined function in sql server? Millennium2
how to get the rowid/rownumbes of a table in sqlserver IBM5
how to find out the repeated value from table using groupby function?  3
When you first load SQL SERVER you will startup with what all databases? CompuSol3
How do you find the number of rows in a table?  5
Difference between Function and Procedure-in general?  3
Explain the storage models of OLAP?  1
What are primary keys and foreign keys?  3
What are defaults? Is there a column to which a default can't be bound?  2
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com