grouping and group-by clause
grouping and group-by clause
Function which acts over no of rows and provide single value per group
Group By Clause
eg.
> Select deptno, count(*) from emp where job='Clerk' group by deptno;
HAVING Clause
Having is used for group filtering which get executed after grouping
It exists with group by only
eg.
Dispaly All the deptno where avg of salary is greater than 2000
Display name of the months where more than 3 employees are hired