
Answer-first summary for fast verification
Answer: Recreate the view with the required changes
The correct answer is C because Snowflake's ALTER VIEW command does not support changing the column references or definition of a view. According to Snowflake documentation and the community consensus (with 100% agreement and multiple upvoted comments), the only way to modify which columns are referenced in a view is to drop and recreate it with the new column definitions. Option A is incorrect as modifying the underlying table does not change the view's column references unless the view is recreated. Option B is incorrect because ALTER VIEW cannot change the view definition. Option D is incorrect as materializing the view does not allow modification of column references; it creates a physical copy but doesn't alter the original view's definition.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.