How To use the HAVING clause in SQL query?
SQL having clause is used where you have to use some kind of aggregate as a condition. SYNTAX: EXAMPLE This is a demo table. Now suppose you have to find the subjects with average marks more than 80, here is how you will do it. Here is what happens when you use WHERE clause instead …