What is the difference between Having and Where Clause? - ProProfs Discuss
Advertisement

What is the difference between Having and Where Clause?

Asked by K. Gibson, Last updated: Apr 22, 2024

+ Answer
Request
Question menu
Vote up Vote down

1 Answer

H. Ruby

H. Ruby

H. Ruby
H. Ruby

Answered Mar 17, 2020

Having a clause allows you to specify conditions that filter which group appears as a result. A where clause places provisions on the selected columns, whereas the having clause puts requirements on groups created by the group b4 clause. The having clause must follow the group by clause in a query, and it must also follow the order by clause is used. A having clause limits the outcomes of a group by in a select expression. The clause is applied to groups of the assembled table as a where clause is applied to a select list. Both of where and having clause are quite comparable and used to restrict rows that are returned in a select query. The having clause is utilized to filter rows after the grouping is performed.
upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.