Question from the SQL - Fundamentals test

Write a SQL query to increase the salary of all employees by 10%.

Easy

Given the following 'employees' table:

| emp_id | first_name | last_name | salary |
|--------|------------|-----------|--------|
| 1      | John       | Doe       | 5000   |
| 2      | Jane       | Smith     | 5500   |
| 3      | Alice      | Johnson   | 6000   |

Which SQL query increases the salary of all employees by 10%?

Author: Vincent CotroStatus: PublishedQuestion passed 2076 times
Edit
4
Community Evaluations
developer avatar
Hind
28/08/2024
UPDATE employees : Cette commande indique que vous souhaitez modifier des donnĂ©es dans la table employees. SET salary = salary * 1.1 : Cette partie de la requĂȘte spĂ©cifie que la colonne salary doit ĂȘtre mise Ă  jour en la multipliant par 1.1 (ce qui correspond Ă  une augmentation de 10%).