having clause this clause is used for producing


Having clause

  • This clause is used for producing conditions on grouped information.

Example: Find maximum salary and department number of those departments where maximum salary is more than Rs 20000/-.

SELECT DEPTNO, MAX(SAL) FROM EMP

GROUP BY DEPTNO HAVING MAX(SAL) > 20000;

 

 

Request for Solution File

Ask an Expert for Answer!!
Database Management System: having clause this clause is used for producing
Reference No:- TGS0209799

Expected delivery within 24 Hours