Complete the code to increase the salary by 1000 for all employees.
UPDATE employees SET salary = salary [1] 1000;
The plus sign (+) adds 1000 to the current salary value.
Complete the code to set the bonus to 10% of the current salary.
UPDATE employees SET bonus = salary [1] 0.10;
The asterisk (*) multiplies the salary by 0.10 to calculate 10% bonus.
Fix the error in the code to decrease the stock quantity by 5.
UPDATE inventory SET quantity = quantity [1] 5 WHERE product_id = 101;
The minus sign (-) subtracts 5 from the current quantity.
Fill both blanks to double the price and set the discount to 20%.
UPDATE products SET price = price [1] 2, discount = price [2] 0.20;
Price is doubled by multiplying by 2. Discount is set to 20% of price by multiplying by 0.20.
Fill the blanks to update the total as quantity times price minus discount.
UPDATE sales SET total = (quantity [1] price) [2] discount WHERE sale_id = 500;
Total is calculated by multiplying quantity and price, then subtracting discount.
