ExamGecko
Question list
Search
Search

Question 339 - COF-C02 discussion

Report
Export

A permanent table and temporary table have the same name, TBL1, in a schema.

What will happen if a user executes select * from TBL1 ;?

A.
The temporary table will take precedence over the permanent table.
Answers
A.
The temporary table will take precedence over the permanent table.
B.
The permanent table will take precedence over the temporary table.
Answers
B.
The permanent table will take precedence over the temporary table.
C.
An error will say there cannot be two tables with the same name in a schema.
Answers
C.
An error will say there cannot be two tables with the same name in a schema.
D.
The table that was created most recently will take precedence over the older table.
Answers
D.
The table that was created most recently will take precedence over the older table.
Suggested answer: A

Explanation:

In Snowflake, if a temporary table and a permanent table have the same name within the same schema, the temporary table takes precedence over the permanent table within the session where the temporary table was created4.

asked 23/09/2024
Maria Deras
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first