CBSE Class 12 Informatics Practices Question 37 of 79

MySQL SQL Revision Tour — Question 5

Back to all questions
5
Question

Question 5

Write the UPDATE command to increase the commission (Column name : COMM) by 500 of all the Salesmen who have achieved Sales (Column name : SALES) more than 200000. The table's name is COMPANY.

Answer
UPDATE COMPANY
SET COMM = COMM + 500
WHERE SALES > 200000;