PostgreSQL - Views and Materialized Views
You created a view with this SQL:
When you try to update
CREATE VIEW emp_dept AS SELECT e.id, e.name, d.name AS dept_name FROM employees e JOIN departments d ON e.dept_id = d.id;When you try to update
emp_dept to change an employee's name, you get an error. What is the main reason?