Question: 3 9 - The following query will increase with avg _ salary as ( select avg ( salary ) from employee ) update employee set

39- The following query will increase
with avg_salary as (select avg(salary) from employee)
update employee set salary = case
when salary >0.75** avg_salary then salary *1.15
when salary 0.25** avg_salary then salary *1.05
else salary *1.00
end;
a) all salaries by 15%
b) all salaries by 5%
c) salaries at the bottom by 15%, the ones at the top by 5%.
d) salaries at the top by 15%, the ones at the bottom by 5%
e) salaries at the top by 15%, the ones at the bottom by 5% and all others by 1.
40- The following query will delete
with avg_sal as (select avg(salary) from employee)
delete from employee where id in (select
employee.id from
((employee join department on employee.dep =
department.id
 39- The following query will increase with avg_salary as (select avg(salary)

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 Databases Questions!