Question

2. Describe the differences between the HAVING clause and the WHERE clause. (In 150 to 300...

2. Describe the differences between the HAVING clause and the WHERE clause. (In 150 to 300 words)

0 0
Add a comment Improve this question Transcribed image text
Answer #1

(1)  The where clause applied on single row , Having clause is applied to summarized rows or groups.

(2) we can't use aggregate functions in where clause , We can use aggregate function in HAVING clause.

(3) where can be used with SELECT and other statements like Update, Insert, Delete etc. but having cannot be used without a SELECT query.

(4) WHERE clause is used before GROUP BY clause, but HAVING clause is used after GROUP BY clause.

(5) Where clause acts as a pre filter, but Having clause act as a post filter.

(6) where only fetches the particular data from particular rows according to the condition, but having first complete data is fetched then separated according to the condition.

Add a comment
Know the answer?
Add Answer to:
2. Describe the differences between the HAVING clause and the WHERE clause. (In 150 to 300...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT