SQL Having Clauseq |
||||||||||||||||||||||||||
EXAMPLE1:- This "Sales" Table:-
This SQL:
RESULT :-
EXAMPLE 2 :- The following is the SQL statement:-
The SQL HAVING clause is used to do exactly this, to specify a condition for an aggregate function which is used in your query:
The above SQL statement will select all employees and the sum of their respective hours, as long as this sum is greater than 24. The result of the SQL HAVING clause can be seen below:
If you don't find what you are looking for. Please click here to submit your query, our experts will reply soon. |
||||||||||||||||||||||||||
Terms and Conditions / Privacy Policy / Refund Policy / Shipping Policy