Pham Quỳnh Anh
New member
Which of the following relation updates all instructors with salary over $100,000 receive a 3 percent raise, whereas all others receive a 5 percent raise.
A.
B.
C.
D. None of the mentioned
A.
Code:
Update instructor
set salary = salary * 1.03
where salary > 100000;
update instructor
set salary = salary * 1.05
where salary <= 100000;
Code:
Update instructor
set salary = salary * 1.05
where salary < (select avg (salary)
from instructor);
Code:
Update instructor
set salary = case
when salary <= 100000 then salary * 1.03
else salary * 1.05
end