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