Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Which of the following is correct to count the total salary in "deptno" wise where more than two employees exist?
SELECT deptno, SUM(sal) AS totalsal FROM emp GROUP BY deptno where COUNT(empno) > 2
SELECT deptno, SUM(sal) AS totalsal FROM emp GROUP BY deptno HAVING COUNT(empno) > 2
SELECT deptno, SUM(sal) AS totalsal FROM emp GROUP BY deptno HAVING COUNT(empno) = 2
SELECT deptno, SUM(sal) AS totalsal FROM emp GROUP BY deptno where COUNT(empno) = 2
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!