what is the order of execution of where,having,group by in
select stement

Answer Posted / shivaraj

Execution-1- WHERE
Execution-2- GROUP BY
Execution-3- HAVING

Is This Answer Correct ?    26 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to enter comments in transact-sql statements?

712


What is normalization? Explain its different types?

789


where can you add custom error messages to sql server? : Sql server administration

798


How to Check if table exists in sql server?

784


What is the architecture of ms sql reporting service?

702






how to determine the service pack currently installed on sql server? : Sql server database administration

737


I have triggers,views,functions,stored Procedures for a table. When I am dropping that table which objects are deleted?

775


What are the instances when triggers are appropriate?

715


What is log shipping? Can we do logshipping with SQL Server 7.0 - Logshipping is a new feature of SQL Server 2000. We should have two SQL Server - Enterprise Editions. From Enterprise Manager we can configure the logshipping. In logshipping the transactional log file from one server is automatically updated into the backup database on the other server. If one server fails, the other server will have the same db and we can use this as the DR (disaster recovery) plan.

2525


What is the contrast amongst drop and truncate?

750


What is the difference function and stored procedure?

716


What is the difference between clustered and a non-clustered index?

765


Which joins are sql server default?

681


How to create hyperlink from returned sql query ?

819


Can I delete event logs?

700