Write SQL CODE List the Professor's First (EMP_FNAME) and Last names (EMP_LNAME) of those who teach more than 2 classes (CLASS table). Use Noncorrelated Subquery with INNER JOIN.
Write SQL CODE List the Professor's First (EMP_FNAME) and Last names (EMP_LNAME) of those who teach more than 2 classes (CLASS table). Use Noncorrelated Subquery with INNER JOIN.
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
Related questions
Question
Write SQL CODE List the Professor's First (EMP_FNAME) and Last names (EMP_LNAME) of those who teach more than 2 classes (CLASS table). Use Noncorrelated Subquery with INNER JOIN.
![Table: ENROLL
CLASS_CODE
10014
10014
10018
10018
10021
Table: PREREQUISITE
CRS_CODE
CIS-420
QM-261
QM-362
QM-362
Table: PROFESSOR
STU_NUM
321452
324257
321452
324257
321452
EMP_NUM DEPT_CODE PROF_OFFICE
103
HIST
104
ENG
105
ACCT
106
MKT/MGT
110
BIOL
DRE 156
DRE 102
KLR 229D
KLR 126
AAK 160
***
ENROLL_GRADE
с
B
A
B
с
PRE TAKE
CIS-220
MATH-243
MATH-243
QM-261
PROF_EXTENSION
6783
5561
8665
3899
3412
www
PROF_HIGH_DEGREE
Ph.D.
MA
Ph.D.
Ph.D.
Ph.D.](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F8f9fe09f-03d2-42c5-99ed-f24f20bfc31d%2Fddba710f-266a-478e-bc17-229d70618eb1%2F3uxxem_processed.png&w=3840&q=75)
Transcribed Image Text:Table: ENROLL
CLASS_CODE
10014
10014
10018
10018
10021
Table: PREREQUISITE
CRS_CODE
CIS-420
QM-261
QM-362
QM-362
Table: PROFESSOR
STU_NUM
321452
324257
321452
324257
321452
EMP_NUM DEPT_CODE PROF_OFFICE
103
HIST
104
ENG
105
ACCT
106
MKT/MGT
110
BIOL
DRE 156
DRE 102
KLR 229D
KLR 126
AAK 160
***
ENROLL_GRADE
с
B
A
B
с
PRE TAKE
CIS-220
MATH-243
MATH-243
QM-261
PROF_EXTENSION
6783
5561
8665
3899
3412
www
PROF_HIGH_DEGREE
Ph.D.
MA
Ph.D.
Ph.D.
Ph.D.
![Table: CLASS
CLASS_CODE CRS_CODE CLASS_SECTION
10012
10013
10014
10015
10016
Table: COURSE
ACCT-211
ACCT-211
ACCT-211
ACCT-212
ACCT-212
CRS_CODE
ACCT-211
ACCT-212
CIS-220
CIS-420
MATH-243
Table: EMPLOYEE
1
2
3
1
2
CLASS_TIME
MWF 8:00-8:50
a.m.
Henry
Rosemary
Ronald
Preston
MWF 9:00-9:50
a.m.
TTh 2:30-3:45 p.m.
MWF 10:00-10:50
a.m.
Th 6:00-8:40 p.m.
CRS_DESCRIPTION
Accounting I
Accounting II
Intro. to Microcomputing
Database Design and Implementation
Mathematics for Managers
ROOM_CODE PROF_NUM
BUS311
BUS200
BUS252
BUS311
BUS252
***
♡ ♡ +3
3
105
4
105
342
CRS_CREDIT
3
3
301
301
EMP_NUM EMP_LNAME EMP_FNAME EMP_INITIAL EMP_JOBCODE EMP_HIREDATE EMP_DC
100
Worley
James
F
CUST
2/23/1978 6/12/19
101
Ramso
B
CUST
11/15/1994 11/2/19
102
Edwards
TECH
7/23/1990
7/3/195
103
Donelly
PROF
7/1/1987 10/2/19
104
Yukon
PROF
5/1/1992 2/23/19](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F8f9fe09f-03d2-42c5-99ed-f24f20bfc31d%2Fddba710f-266a-478e-bc17-229d70618eb1%2Fp2cunuv_processed.png&w=3840&q=75)
Transcribed Image Text:Table: CLASS
CLASS_CODE CRS_CODE CLASS_SECTION
10012
10013
10014
10015
10016
Table: COURSE
ACCT-211
ACCT-211
ACCT-211
ACCT-212
ACCT-212
CRS_CODE
ACCT-211
ACCT-212
CIS-220
CIS-420
MATH-243
Table: EMPLOYEE
1
2
3
1
2
CLASS_TIME
MWF 8:00-8:50
a.m.
Henry
Rosemary
Ronald
Preston
MWF 9:00-9:50
a.m.
TTh 2:30-3:45 p.m.
MWF 10:00-10:50
a.m.
Th 6:00-8:40 p.m.
CRS_DESCRIPTION
Accounting I
Accounting II
Intro. to Microcomputing
Database Design and Implementation
Mathematics for Managers
ROOM_CODE PROF_NUM
BUS311
BUS200
BUS252
BUS311
BUS252
***
♡ ♡ +3
3
105
4
105
342
CRS_CREDIT
3
3
301
301
EMP_NUM EMP_LNAME EMP_FNAME EMP_INITIAL EMP_JOBCODE EMP_HIREDATE EMP_DC
100
Worley
James
F
CUST
2/23/1978 6/12/19
101
Ramso
B
CUST
11/15/1994 11/2/19
102
Edwards
TECH
7/23/1990
7/3/195
103
Donelly
PROF
7/1/1987 10/2/19
104
Yukon
PROF
5/1/1992 2/23/19
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
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.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
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)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education