Computer Science · SQL DML Statements
Consider the following schema: Lecturer(EmpNo CHAR(03), Name VARCHAR(50), Salary REAL, Allowance REAL, Category VARCHAR(25)) Which SQL statement will correctly increase the Salary by 3000 for lecturers in the 'Senior Lecturer' category?
- 1UPDATE SET Salary = Salary + 3000 FROM Lecturer WHERE Category = 'Senior Lecturer';
- 2UPDATE SET Salary + 3000 FROM Lecturer WHERE Category = 'Senior Lecturer';
- 3UPDATE Salary SET Salary = Salary + 3000 FROM Lecturer WHERE Category = 'Senior Lecturer';
- 4UPDATE Lecturer SET Salary = Salary + 3000 WHERE Category = 'Senior Lecturer';✓
Correct answer
UPDATE Lecturer SET Salary = Salary + 3000 WHERE Category = 'Senior Lecturer';
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 mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on SQL DML Statements?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · SQL DML Statements