Complete the code to update the salary of employees in the 'employees' table.
UPDATE employees SET salary = salary [1] 1000 WHERE department = 'Sales';
The '+' operator increases the salary by 1000 for employees in the Sales department.
Complete the code to return the updated rows after increasing the salary.
UPDATE employees SET salary = salary + 500 WHERE id = 10 [1] salary, id;
The 'RETURNING' clause in PostgreSQL returns the specified columns of the updated rows.
Fix the error in the code to correctly update and return the employee's name and new salary.
UPDATE employees SET salary = salary + 200 WHERE id = 5 RETURNING [1];
Column names in RETURNING must be separated by commas without extra characters.
Fill both blanks to update the 'status' and return the 'id' and 'status' of updated rows.
UPDATE orders SET status = [1] WHERE shipped = false RETURNING [2], status;
The status is set to 'delivered' (a string), and the 'id' column is returned along with status.
Fill all three blanks to update 'quantity', return 'order_id', 'quantity', and only rows where quantity is greater than 10.
UPDATE order_items SET quantity = quantity - [1] WHERE quantity > [2] RETURNING [3], quantity;
Decrease quantity by 5, filter rows where quantity > 10, and return 'order_id' and updated quantity.