The query groups the DEPARTMENT_ID, based on PROF_NUM count's that are more than 1 MYSQL [jsohn6]> SELECT COUNT ( PROF_NUM) , DEPARTMENT_ID ->FROM COURSE ->GROUP BY DEPARTMENT_ID -> HAVING COUNT ( PROF_NUM) >1; COUNT (PROF_NUM) | DEPARTMENT_ID | 4 101 з | 103 2 rows in set (0.01 sec)

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter12: Database Queries With Sql
Section: Chapter Questions
Problem 2MQ2
icon
Related questions
Question

What is the "WHERE statment" in the query attached?

The query groups the DEPARTMENT_ID, based on PROF_NUM count's that are more than 1
MYSQL [jsohn6]> SELECT COUNT ( PROF_NUM) , DEPARTMENT_ID
->FROM COURSE
->GROUP BY DEPARTMENT_ID
-> HAVING COUNT ( PROF_NUM) >1;
COUNT (PROF_NUM) | DEPARTMENT_ID |
4
101
з |
103
2 rows in set (0.01 sec)
Transcribed Image Text:The query groups the DEPARTMENT_ID, based on PROF_NUM count's that are more than 1 MYSQL [jsohn6]> SELECT COUNT ( PROF_NUM) , DEPARTMENT_ID ->FROM COURSE ->GROUP BY DEPARTMENT_ID -> HAVING COUNT ( PROF_NUM) >1; COUNT (PROF_NUM) | DEPARTMENT_ID | 4 101 з | 103 2 rows in set (0.01 sec)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Single Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning