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 (...


Did I correctly perform the SQL query below (photo attached):


A query that contains the GROUP BY clause, one of the aggregate functions, the WHERE statement, and the HAVING operator.




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

Extracted 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)
MySQL [jsohn6] > SELECT * FROM COURSE;<br>| COURSE_TYPE | PROF_NUM | DE PARTM ENT_ID | COURSE_TITLE<br>| COURSE_DESCRIPTION<br>COURSE_TYPE_CODE<br>101 Costume Designs<br>101 Couture Fashion<br>101 Costume Designs<br>101 Textile Designs<br>201 Fine Arts<br>103 Computer Patterns<br>103 Web Retail<br>103 Web Design<br>202 Design with Technolo | Intro to Computer Design<br>|Fundamentals of Cost ume Design F<br>Fundamentals of Luxury Design | F<br>Fundamentals of Costume Design F<br>Fundamentals of Textile Design | F<br>F<br>T<br>T<br>| Fundamentals of Graphic Design | T<br>| T<br>1<br>1 |<br>FASH-100<br>FASH-110<br>FASH-120<br>3<br>7<br>FASH-150<br>Advanced Printmaking<br>| Intro to Computer Patterns<br>|Intro to Retail Ecommerce<br>FASH-210<br>7<br>TECH-100<br>4<br>ТЕCH-110<br>TECH-120<br>4<br>TECH-200<br>2<br>9 rows in set (0.01 sec)<br>

Extracted text: MySQL [jsohn6] > SELECT * FROM COURSE; | COURSE_TYPE | PROF_NUM | DE PARTM ENT_ID | COURSE_TITLE | COURSE_DESCRIPTION COURSE_TYPE_CODE 101 Costume Designs 101 Couture Fashion 101 Costume Designs 101 Textile Designs 201 Fine Arts 103 Computer Patterns 103 Web Retail 103 Web Design 202 Design with Technolo | Intro to Computer Design |Fundamentals of Cost ume Design F Fundamentals of Luxury Design | F Fundamentals of Costume Design F Fundamentals of Textile Design | F F T T | Fundamentals of Graphic Design | T | T 1 1 | FASH-100 FASH-110 FASH-120 3 7 FASH-150 Advanced Printmaking | Intro to Computer Patterns |Intro to Retail Ecommerce FASH-210 7 TECH-100 4 ТЕCH-110 TECH-120 4 TECH-200 2 9 rows in set (0.01 sec)

Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here