SyntaxFix
Write A Post
Hire A Developer
Questions
SELECT DEPTNAME FROM(SELECT D.DEPTNAME,COUNT(EMPID) AS TOTEMP FROM DEPT AS D,EMPLOYEE AS E WHERE D.DEPTID=E.DEPTID AND SALARY>1000 GROUP BY D.DEPTID ) WHERE TOTEMP>2;