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) MYSQL [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 | Intro to Retail Ecommerce | Fundamentals of Graphic Design | T FASH-100 FASH-110 FASH-120 7| FASH-150 FASH-210 4 | TECH-100 TECH-110 2 4 | 2 | TECH-120 TECH-200 9 rows in set (0.01 sec)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
icon
Concept explainers
Question

Create a query that uses any THREE of the tables (SCHOOL, DEPARTMENT, PROFESSOR, TECHNOLOGY & COURSE tables attached) that includes both an arithmetic and a special operator in the conditional expression. 

 

 

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)
Transcribed Image 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)
MYSQL [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
| Intro to Retail Ecommerce
| Fundamentals of Graphic Design | T
FASH-100
FASH-110
FASH-120
7|
FASH-150
FASH-210
4 |
TECH-100
TECH-110
2
4 |
2 |
TECH-120
TECH-200
9 rows in set (0.01 sec)
Transcribed Image Text:MYSQL [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 | Intro to Retail Ecommerce | Fundamentals of Graphic Design | T FASH-100 FASH-110 FASH-120 7| FASH-150 FASH-210 4 | TECH-100 TECH-110 2 4 | 2 | TECH-120 TECH-200 9 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 with 2 images

Blurred answer
Knowledge Booster
Query Syntax
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
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education