-
What is the significance of the statement “HAVING COUNT (emp_id)>2” in the given query?
SELECT dep.name, COUNT (emp_id) emp_no
FROM department dep INNER JOIN Employee em
ON dep.dept_id=em.emp_id
GROUP BY dep.name
HAVING COUNT (emp_id) > 2
-
- Selecting those rows whose total emp_id > 2
- Filter out all rows whose total emp_id below 2 & Selecting those rows whose total emp_id > 2
- Filter out all rows whose total emp_id below 2
- All of above
- None of these
Correct Option: B
“HAVING” clause are worked similar as “WHERE” clause.