Computer Science · Database Management Systems
Consider the relational schema: Lecturer(EmpNo, Name, Salary, Allowance, Research_SupNo, Category, DateJoined, DNo) Which SQL query correctly increases the Salary by 3000 for all lecturers belonging to the 'Senior Lecturer' category?
- 1UPDATE Lecturer WHERE Category = 'Senior Lecturer' SET Salary + 3000;
- 2UPDATE SET Salary = 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 Database Management Systems?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Database Management Systems