Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

. Suppose that the data in the Lecturer and ModuleDelivery tables is as shown below: Lecturer Module Delivery LECTURERID LASTNAME EMAIL FIRSTNAME SALARY BONUS LECTURERNO

image text in transcribed

. Suppose that the data in the Lecturer and ModuleDelivery tables is as shown below: Lecturer Module Delivery LECTURERID LASTNAME EMAIL FIRSTNAME SALARY BONUS LECTURERNO MODULECODE 101 Byrne pb@techu.com Pat 75000 (null) 101 P101 102 Smith ss@techu.com Sam 89000 7000 101 D102 103 Dillon ad@techu.com Andrew 70000 7000 102 D102 102 P101 102 L103 (a) Using UNION Write the SQL to create the following output: FIRSTNAME LASTNAME TEACHING Pat Byrne is teaching databases Sam Smith is teaching databases Sam Smith is teaching legal issues Hint: You need to join moduledelivery to one other table and to ensure that 'is teaching databases' is output for the Teaching column if the module code is 'D102' and 'is teaching legal issues' is output if module code is 'L103'. You are only interested in including lecturers teaching these modules in the output

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

Databases Illuminated

Authors: Catherine M Ricardo, Susan D Urban

3rd Edition

1284056945, 9781284056945

More Books

Students also viewed these Databases questions