This clause is used to provide a condition on group functions, which may filter the data based on the data retrieved at group function. You must need group by clause while declaring having by clause. Example:= 1) Display deptno and total sal of those dept whose total sal is greater than 9000. Ans : Select deptno, sum(sal) from emp Group by deptno Having sum(sal)> 9000; 2) Display deptno and number of employees working at each dept, only for those departments where more than 3 employees are working. Ans : Select deptno, count(*) from emp Group by deptno Having count(*)>3; 3) Calcul...
Welcome to our blog for SQL and PLSQL. Here you will find about the SQL basic to advance level things along with PLSQL. Also you will get the latest SQL related Interview questions and answers. I hope you will get the things you are looking for here. Happy learning for SQL and PL-SQL.