What is the difference between using the WHERE clause and the HAVING clause?

What will be an ideal response?


The HAVING clause is similar to the WHERE clause. However, the WHERE clause restricts the results based on individual row values. Another way of saying this is that the WHERE clause can eliminate records from the results before the aggregates are calculated. The HAVING clause eliminates entire groups of records from the results based on the aggregated calculations. Because the HAVING clause works on aggregated rows, it always uses an aggregate function as its test.

Computer Science & Information Technology

You might also like to view...

What is a navigational element? List three types.

What will be an ideal response?

Computer Science & Information Technology

Experiment by calling the file utility with the names of files in /usr/bin. How many different types of files are there?

What will be an ideal response?

Computer Science & Information Technology

A ___________ statement encloses code that may raise an exception.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

A function that calls another function is referred to as the ____.

A. function prototype B. called function C. calling function D. function declarator

Computer Science & Information Technology