What Is The Significance Of The Statement Having Count Empidgt2 #1102
What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement?</p> <pre><code class="language-sql"> 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 </code></pre>
This multiple choice question (MCQ) is related to the book/course gs gs113 MySQL. It can also be found in gs gs113 Select Statement - The group by and having Clause - Quiz No.1.
What is the significance of the statement “HAVING COUNT (emp_id)>2” in the following MySQL statement?
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
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 & Selecting those rows whose total emp_id>2
None of the mentioned
Similar question(s) are as followings:
Online Quizzes of gs113 MySQL
MySQL Programs Using C - Using the Embedded Server Library - Quiz No.1
gs gs113 MySQL
Online Quizzes
System, Status and User Variables - User-Defined Variables - Quiz No.1
gs gs113 MySQL
Online Quizzes
Using SQL to Manage Data - Populating and Modifying Tables - Quiz No.1
gs gs113 MySQL
Online Quizzes
Using SQL to Manage Data - Populating and Modifying Tables - Quiz No.2
gs gs113 MySQL
Online Quizzes