what is difference between having and where clause ?

Answer Posted / dhiman

Where clause is used to check for the condition- select rows
& restrict rows and where comes before having clause whereas
Having is clause that is created to utilize all the group
functions (sum,avg,min,max,count) and is used for select or
restrict a particular group.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of containers in ssis and also their types?

704


How do clustered indexes store data?

798


Explain filtered indexes?

743


What is sleeping status in sql server?

704


How many tables can be joined in SQL Server?

759






Can you import Microsoft Excel data to SSRS?

111


How to disable stored procedure sql server?

1216


What is difference between index and primary key?

793


What is recursion? Is it possible for a stored procedure to call itself or recursive stored procedure? How many levels of sp nesting are possible?

729


What is the size of transaction log file?

657


What is query and its types?

684


Can we write a distributed query and get some data which is located on other server and oracle database?

954


Can I use sql azure as a backup with log shipping or database mirroring?

148


What do you understand by the analysis services in sql server?

702


Explain the truncate command? : SQL Server Architecture

775