I'm supposed to display the name of the department in which there are at least four employees. I tried a few different methods, including this one:
SELECT Department, COUNT(EmployeeID) AS NumberOfEmployee
FROM Deparment d INNER JOIN Employees e
ON d.DeparmentID = e.DeparmentID
GROUP BY Deparment
HAVING NumberOfEmployee >= 4;
When I run the query, it is asking me to enter the parameter value for NumberOfEmployee
.
Can anyone tell me what's wrong?