We read your photo as:
Write a SQL query to increase the salaries of employees in the 'Engineering' department by 5000.
Computer Science
ScanSolve AI Answer
This answer stops before the end.
It was cut off when it was first written. Ask ScanSolve this question again for the full working.
To increase the salaries of employees in the 'Engineering' department by 5000, you will use an UPDATE statement.
Step 1: Write the UPDATE query.
This query will update the Salary column in the Employee table, adding 5000 to the current salary for all employees where the Department is 'Engineering'.
UPDATE Employee
SET Salary = Salary + 5000
WHERE Department = 'Engineering';
UPDATE Employee: Specifies that you are modifying theEmployeetable.SET Salary = Salary + 5000: Increases the value in theSalarycolumn by 5000.WHERE Department = 'Engineering': Filters the update to only apply to rows where theDepartmentcolumn has the value 'Engineering'.
Was this helpful?
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.
Got a different question?Ask your own question
More Computer Science Questions
QWrite SQL queries for the following: display all employees in the IT department, total salary in HR…QHow do I fix the SQL error 'ERROR 1064 (42000): You have an error in your SQL syntax' when inserting…QHow do I update all employees' Date of Employment (DOE) to be two days later using MySQL?QHow to fix the SQL error "Column 'EmpID' in field list is ambiguous" when joining Employee and…QDetermine the primary keys, foreign keys, and composite keys for the given Employee, Emp_Salary, and…
Browse by topic:SQL