Which SQL query will correctly raise the salary by 10% for employees in the…
Which SQL query will correctly raise the salary by 10% for employees in the 'HR' department who currently earn less than 50,000?
- A.
MODIFY employees SET salary = salary + 10% WHERE department = 'HR' AND salary < 50000;
- B.
UPDATE employees SET salary = salary * 1.10 WHERE department = 'HR' AND salary < 50000;
- C.
UPDATE employees SET salary = salary * 10% WHERE department = 'HR';
- D.
UPDATE employees SET salary = salary + 5000 IF department = 'HR' AND salary < 50000;
Attempted by 80 students.
Sign up free to check your answer
Sign up freeLoading lesson…