Professional Documents
Culture Documents
qb3
qb3
INCORRECT QUERY:
SELECT Dno, COUNT (*)
FROM EMPLOYEE
WHERE Salary>40000
GROUP BY Dno
HAVING COUNT (*) > 5;
Discuss why above query is wrong? And write the correct query.