Computer Science · SQL Commands
A data analyst needs to increase the salary of all employees in the 'Accounts' department by 10%. The department name is stored in the DeptName column. Which SQL command correctly achieves this task?
- 1INSERT INTO Employee VALUES (Salary * 1.10);
- 2ALTER TABLE Employee MODIFY Salary = Salary * 1.10;
- 3UPDATE Employee SET Salary = Salary * 1.10 WHERE DeptName = 'Accounts';✓
- 4UPDATE Employee SET Salary = Salary + 10 WHERE DeptName = 'Accounts';
Correct answer
UPDATE Employee SET Salary = Salary * 1.10 WHERE DeptName = 'Accounts';
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length Computer Science mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on SQL Commands?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · SQL Commands