Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Give me the code that fits the question. Please give me the code that fits the question. It's really important. And please use the table

Give me the code that fits the question. Please give me the code that fits the question. It's really important. And please use the table shown in the screen shot that I uploaded.

Question

Update the salaries of the instructors as follows.

Increase salary by 6% for the instructors who taught at least 3 different courses (different course_id);

Increase salary by 4% for the instructors who taught exactly 2 different courses;

Increase salary by 2% for other instructors (including the instructors who did not teach).

Please use BEGIN TRAN and ROLLBACK properly (CREATE VIEW is not allowed to use; you may use the WITH clause within BEGIN TRAN and ROLLBACK). You must use the CASE expression.

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed

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

Advanced MySQL 8 Discover The Full Potential Of MySQL And Ensure High Performance Of Your Database

Authors: Eric Vanier ,Birju Shah ,Tejaswi Malepati

1st Edition

1788834445, 978-1788834445

More Books

Students also viewed these Databases questions

Question

What is job enlargement ?

Answered: 1 week ago

Question

what is the most common cause of preterm birth in twin pregnancies?

Answered: 1 week ago

Question

Which diagnostic test is most commonly used to confirm PROM?

Answered: 1 week ago