Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a query to return a list of professor names and their associated courses for all courses outside of their departments. There should be no

Write a query to return a list of professor names and their associated courses for all
courses outside of their departments. There should be no duplicate rows, but they can b
in any order.
The output should contain two columns: professor.name, course.name.
Sample Output
Tyler Rodriguez Astronomy
Jordan Myers Earth Sciences
Alex Daniels Materials Science and Metallurgy
Ellis Vasquez Materials Science and Metalurgy
Tyler Rodriguez Geography
Peyton Stevens Applied Mathematics and Theoretical Physics
Riley Gilbert Earth Sciences
Alex Daniels Pure Mathematics and Mathematical Statistics
Alex Daniels Applied Mathematics and Theoretical Physics
Alex Daniels Materials Science and Metallurgy
Explanation
Example logic
1. Professor Tyler Rodriguez's department id is 3, but the Astronomy course's department id is 1.
2. Professor Jordan Myers's department id is 4, but the Earth Sciences course's department id is 1
Log in to add comment

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions