Exam SnowPro Core All QuestionsBrowse all questions from this exam
Question 309

How can a user change which columns are referenced in a view?

    Correct Answer: C

    To change which columns are referenced in a view, the correct approach is to recreate the view with the desired changes. This involves dropping the existing view and creating a new one with the updated column references, as modifying a view's definition directly is not supported.

Discussion
halolOption: C

Answer is C: https://docs.snowflake.com/en/sql-reference/sql/alter-view.html#alter-view

SV1122Option: C

Currently the only supported operations are: Renaming a view. Converting to (or reverting from) a secure view. Adding, overwriting, removing a comment for a view. Note that you cannot use this command to change the definition for a view. To change the view definition, you must drop the view and then recreate it. https://docs.snowflake.com/en/sql-reference/sql/alter-view.html#alter-view

srj_mehtaOption: C

C: ALTER VIEW Modifies the properties for an existing view. Currently the only supported operations are: Renaming a view. Converting to (or reverting from) a secure view. Adding, overwriting, removing a comment for a view. Note that you cannot use this command to change the definition for a view. To change the view definition, you must drop the view and then recreate it.

KarBiswaOption: C

only need to change the underlying SQL views are always replacable

_yyuktaOption: C

C is correct

MultiCloudIronManOption: C

correct

c0d3gOption: C

To change the view definition, you must drop the view and then recreate it.

examed11Option: C

Note that you cannot use this command to change the definition for a view. To change the view definition, you must drop the view and then recreate it.

akhandelwal680

No I think we can create and replave the view, with modified changes no need to drop the view.