Hi
I need to update the salary an employee table
It should be a single UPDATE statement such that , I can update all the jobs in a single update
If the job is 'CLERK' then
Sal = Sal + 200
If the job is 'OFFICER' then
Sal = Sal + 500
If the job is 'MANAGER' then
Sal = Sal + 500
Ideally, only for one job the way I would write is
UPDATE emp SET
Sal = Sal + 200
WHERE job = 'CLERK'.
Please suggest me an UPDATE for multiple updates . I might not need a PL/SQL procedure
thanks
I need to update the salary an employee table
It should be a single UPDATE statement such that , I can update all the jobs in a single update
If the job is 'CLERK' then
Sal = Sal + 200
If the job is 'OFFICER' then
Sal = Sal + 500
If the job is 'MANAGER' then
Sal = Sal + 500
Ideally, only for one job the way I would write is
UPDATE emp SET
Sal = Sal + 200
WHERE job = 'CLERK'.
Please suggest me an UPDATE for multiple updates . I might not need a PL/SQL procedure
thanks