Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The following query will imereave update cringlesyere sel sialary case when salary = 0 . when salary 0 . 2 8 avg ealary then
The following query will imereave
update cringlesyere sel sialary case
when salary
when salary avg ealary then salary
cloe salary
und.
a all salaries by
b all salaries by
c Dalaries at the bottom by s the ones at the top by
d salaries at the top by the ones at the bottom by
c salaries at the top by the ones at the bottom by and all others by
The following query will delete
with avg sal as select avgsalary from employee
delete from employee where id in select
employee.id from
employee join department on employee.dep
department.id
join location on employee.loc
location.id and city 'Kars' and salary avg sal:
a all employees unconditionally
b all employees if they are located in Kars
c all employees if they are earning less than of the average salary
d all employees if they are located in Kars and earning more than of the average salary
e all employees if they are earning less than of the average salary and located in Kars
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started