Question

A view is defined as: CREATE VIEW V AS SELECT dept_id, AVG(salary) AS avg_sal FROM Employees GROUP BY dept_id; Can this view be used directly in an UPDATE statement to modify the underlying Employees.salary values, and why?

A Yes, because all views in SQL are fully updatable by definition
B Yes, but only if the view is first converted into a temporary table
C No, because views can never be used in any DML statement under any circumstances
D No, because the view contains an aggregate function (AVG) and a GROUP BY clause
E Yes, but only for the dept_id column, not for avg_sal
Practice Next

Hey! Ask a query

🎓
Think You're Ready for RBI Grade B?
RBI Grade B 2026 Phase 1 Memory Based Paper
  • 200 Questions with Detailed Solutions
  • Section-wise Coverage (GA, English, Quant & Reasoning)