What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement? [code] SELECT d.name, count (emp_id)

Trần Vũ

New member
What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement?
Code:
SELECT d.name, count (emp_id) emp_no
FROM department d INNER JOIN Employee e
ON d.dept_id=e.emp_id
GROUP BY d.name
HAVING COUNT (emp_id)>2
A. Filter out all rows whose total emp_id below 2
B. Selecting those rows whose total emp_id>2
C. Filter out all rows whose total emp_id below 2 & Selecting those rows whose total emp_id>2
D. None of the mentioned
 

Tìm kiếm

Back
Top