0
0
Snowflakecloud~5 mins

Data types in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the purpose of data types in Snowflake?
Data types define the kind of data that can be stored in a column, such as numbers, text, or dates. They help Snowflake understand how to store, process, and retrieve data efficiently.
Click to reveal answer
beginner
Name three common numeric data types in Snowflake.
1. NUMBER (for integers and decimals)<br>2. FLOAT (for floating-point numbers)<br>3. INTEGER (alias for NUMBER without decimals)
Click to reveal answer
beginner
What data type would you use to store text in Snowflake?
You use VARCHAR or STRING data types to store text. They can hold variable-length character data.
Click to reveal answer
intermediate
How does Snowflake handle date and time data types?
Snowflake provides DATE for dates, TIME for time of day, TIMESTAMP for date and time combined, and TIMESTAMP_TZ for timestamps with time zone information.
Click to reveal answer
intermediate
What is the difference between VARIANT and OBJECT data types in Snowflake?
VARIANT can store semi-structured data like JSON, XML, or Avro in a flexible way. OBJECT is a subtype of VARIANT that specifically stores key-value pairs like a JSON object.
Click to reveal answer
Which Snowflake data type is best for storing whole numbers without decimals?
AVARCHAR
BTIMESTAMP
CNUMBER
DBOOLEAN
Which data type should you use to store a user's full name?
AVARCHAR
BFLOAT
CDATE
DOBJECT
What data type stores date and time with timezone in Snowflake?
ATIME
BTIMESTAMP_TZ
CDATE
DVARIANT
Which data type is designed for semi-structured data like JSON?
AVARIANT
BBOOLEAN
COBJECT
DNUMBER
If you want to store true or false values, which data type do you choose?
ATIMESTAMP
BVARCHAR
CNUMBER
DBOOLEAN
Explain the main categories of data types available in Snowflake and give an example of each.
Think about numbers, words, dates, flexible data, and true/false.
You got /5 concepts.
    Describe when you would use the VARIANT data type instead of VARCHAR or NUMBER in Snowflake.
    Consider data that is not just simple text or numbers.
    You got /4 concepts.