The code for v2_altered.sql is: ALTER VIEW v2 AS SELECT c FROM v1 WITH LOCAL CHECK OPTION; INSERT INTO v2(c) VALUES (5); INSERT INTO v3(c) VALUES (8);