Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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
image 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

Automating Access Databases With Macros

Authors: Fish Davis

1st Edition

1797816349, 978-1797816340

More Books

Students also viewed these Databases questions

Question

Explain in brief the functions and functioning of stock exchanges.

Answered: 1 week ago