Question: Procedure ( 2 0 p t s Implement a conditional CASE - - raising salary of Staff ( 1 ) Start phpMyAdmin and choose dreamhome

Procedure (20pts
Implement a conditional CASE -- raising salary of Staff
(1) Start phpMyAdmin and choose dreamhome database
(2) Click on Routines tab and add routine
(3) Select procedure and give name raiseSalary
(4) Drop input output parameter (this case, no parameter)
(5) Enter code
UPDATE Staff
SET salary = CASE
WHEN oPosition = 'Manager'
THEN salary *1.05
ELSE
salary *1.02
END;
Procedure ( 2 0 p t s Implement a conditional

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!