ExamGecko
Question list
Search
Search

Question 258 - SnowPro Core discussion

Report
Export

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

A.
Modify the columns in the underlying table
Answers
A.
Modify the columns in the underlying table
B.
Use the ALTER VIEW command to update the view
Answers
B.
Use the ALTER VIEW command to update the view
C.
Recreate the view with the required changes
Answers
C.
Recreate the view with the required changes
D.
Materialize the view to perform the changes
Answers
D.
Materialize the view to perform the changes
Suggested answer: C

Explanation:

In Snowflake, to change the columns referenced in a view, the view must be recreated with the required changes. TheALTER VIEWcommand does not allow changing the definition of a view; it can only be used to rename a view, convert it to or from a secure view, or add, overwrite, or remove a comment for a view.Therefore, the correct approach is to drop the existing view and create a new one with the desired column references.

asked 23/09/2024
alain giansily
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first