0
0
Snowflakecloud~5 mins

Creating tables (permanent, temporary, transient) in Snowflake - Quick Revision & Summary

Choose your learning style9 modes available
Recall & Review
beginner
What is a permanent table in Snowflake?
A permanent table stores data persistently until explicitly deleted. It keeps data safe even after sessions end or system restarts.
Click to reveal answer
beginner
How does a temporary table differ from a permanent table?
A temporary table exists only during the user session. It is automatically dropped when the session ends, so data is not saved permanently.
Click to reveal answer
intermediate
What is a transient table in Snowflake?
A transient table stores data persistently but does not have fail-safe protection. It is useful for data that can be lost without major impact.
Click to reveal answer
intermediate
Which table type in Snowflake has fail-safe protection?
Permanent tables have fail-safe protection, which helps recover data after accidental loss for a limited time.
Click to reveal answer
beginner
Write the basic SQL command to create a temporary table named 'temp_sales' with columns 'id' (integer) and 'amount' (decimal).
CREATE TEMPORARY TABLE temp_sales (id INT, amount DECIMAL(10,2));
Click to reveal answer
Which Snowflake table type is automatically dropped at the end of the session?
APermanent table
BTransient table
CExternal table
DTemporary table
Which table type does NOT have fail-safe protection?
ATransient table
BPermanent table
CTemporary table
DAll have fail-safe
What keyword is used to create a transient table in Snowflake?
ACREATE TEMPORARY TABLE
BCREATE TRANSIENT TABLE
CCREATE PERMANENT TABLE
DCREATE EXTERNAL TABLE
Which table type is best for storing data that must be kept permanently and safely?
APermanent table
BTransient table
CTemporary table
DExternal table
What happens to data in a temporary table after the session ends?
AData is saved permanently
BData is moved to permanent table
CData is lost and table is dropped
DData is archived automatically
Explain the differences between permanent, temporary, and transient tables in Snowflake.
Think about how long the data lasts and protection levels.
You got /3 concepts.
    Write the SQL commands to create one permanent, one temporary, and one transient table named 'perm_table', 'temp_table', and 'trans_table' with a single column 'id' integer.
    Use the keywords TEMPORARY and TRANSIENT for special tables.
    You got /3 concepts.