Create a complex query based on two or more tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY, COURSE, & FASHION tables attached) which i ncludes either several conditions or a subquery (or both)....


Create a
complex query
based on two or more tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY, COURSE, & FASHION tables attached) which includes either several conditions or a subquery (or both).


YSQL [jsohn6]> SELECT * FROM SCHOOL;<br>lySQL [jsohn6]> SELECT * FROM DEPARTMENT;<br>SCHOOL_CODE<br>DEPARTMENT_ID<br>| DEPARTMENT_ID |<br>DEPARTMENT_NAME<br>101<br>SCHOOL OF MERCHANDISING<br>FASHION DESIGN<br>101<br>SCHOOL OF FASHION DESIGN<br>102<br>ADVERTISING<br>102<br>103|<br>201||<br>202 |<br>SCHOOL OF GRAPHIC DESIGN<br>GRAPHIC DESIGN<br>103<br>SCHOOL OF FINE ARTS<br>201<br>FINE ARTS<br>SCHOOL OF DESIGN AND TECHNOLOG<br>DESIGN AND TECHNOLOGY<br>202<br>rows in set (0.00 sec)<br>MYSQL [jsohn6]> SELECT<br>FROM PROFESSOR;<br>MYSQL [jsohn6]> SELECT * FROM TECHNOLOGY;<br>| PROF_NUM | PROF_LASTNAME<br>PROF_FIRSTNAME<br>COURSE_TYPE | LABTOP_NUMBER<br>1 | Smith<br>2 | Banks<br>3 | Taylor<br>4 | Smith<br>6 | Smith<br>7 | Banks<br>Mary<br>| Jane<br>TECH-100<br>12345<br>Hazel<br>TECH-110<br>67890<br>Terry<br>TECH-120<br>13579<br>| Jenny<br>| Tim<br>24680<br>TECH-200<br>4 rows in set (0.00 sec)<br>6 rows in set (0.00 sec)<br>

Extracted text: YSQL [jsohn6]> SELECT * FROM SCHOOL; lySQL [jsohn6]> SELECT * FROM DEPARTMENT; SCHOOL_CODE DEPARTMENT_ID | DEPARTMENT_ID | DEPARTMENT_NAME 101 SCHOOL OF MERCHANDISING FASHION DESIGN 101 SCHOOL OF FASHION DESIGN 102 ADVERTISING 102 103| 201|| 202 | SCHOOL OF GRAPHIC DESIGN GRAPHIC DESIGN 103 SCHOOL OF FINE ARTS 201 FINE ARTS SCHOOL OF DESIGN AND TECHNOLOG DESIGN AND TECHNOLOGY 202 rows in set (0.00 sec) MYSQL [jsohn6]> SELECT FROM PROFESSOR; MYSQL [jsohn6]> SELECT * FROM TECHNOLOGY; | PROF_NUM | PROF_LASTNAME PROF_FIRSTNAME COURSE_TYPE | LABTOP_NUMBER 1 | Smith 2 | Banks 3 | Taylor 4 | Smith 6 | Smith 7 | Banks Mary | Jane TECH-100 12345 Hazel TECH-110 67890 Terry TECH-120 13579 | Jenny | Tim 24680 TECH-200 4 rows in set (0.00 sec) 6 rows in set (0.00 sec)
VSQL [jsohn6]> SELECT<br>FROM COURSE;<br>COURSE_TYPE | PROF_NUM | DEPARTMENT_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 Costume Design | F<br>| Fundamentals of Luxury Design | F<br>| Fundamentals of Costume Design | F<br>| Fundamentals of Textile Design | F<br>Advanced Printmaking<br>| Intro to Computer Patterns<br>FASH-100<br>FASH-110<br>FASH-120<br>FASH-150<br>FASH-210<br>4 |<br>2 |<br>4 |<br>2 |<br>TECH-100<br>Intro to Retail Ecommerce<br>TECH-110<br>| Fundamentals of Graphic Design | T<br>TECH-120<br>TECH-200<br>rows in set (e.01 sec)<br>MYSQL [jsohn6]> SELECT * FROM FASHION;<br>COURSE_TYPE | RUNWAY_DATE<br>| 2020-05-27<br>| 2020-05-27<br>| 2020-05-27<br>| 2020-05-28<br>| 2020-05-28<br>FASH-100<br>FASH-110<br>FASH-120<br>FASH-150<br>FASH-210<br>rows in set (0.00 sec)<br>

Extracted text: VSQL [jsohn6]> SELECT FROM COURSE; COURSE_TYPE | PROF_NUM | DEPARTMENT_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 Costume Design | F | Fundamentals of Luxury Design | F | Fundamentals of Costume Design | F | Fundamentals of Textile Design | F Advanced Printmaking | Intro to Computer Patterns FASH-100 FASH-110 FASH-120 FASH-150 FASH-210 4 | 2 | 4 | 2 | TECH-100 Intro to Retail Ecommerce TECH-110 | Fundamentals of Graphic Design | T TECH-120 TECH-200 rows in set (e.01 sec) MYSQL [jsohn6]> SELECT * FROM FASHION; COURSE_TYPE | RUNWAY_DATE | 2020-05-27 | 2020-05-27 | 2020-05-27 | 2020-05-28 | 2020-05-28 FASH-100 FASH-110 FASH-120 FASH-150 FASH-210 rows in set (0.00 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