0
0
Snowflakecloud~5 mins

Databases and schemas in Snowflake - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a database in Snowflake?
A database in Snowflake is a container that holds schemas, which in turn contain tables and other database objects. It organizes data logically for easy management.
Click to reveal answer
beginner
What is a schema in Snowflake?
A schema is a way to group database objects like tables and views inside a database. It helps organize and separate data within the database.
Click to reveal answer
beginner
How do databases and schemas relate in Snowflake?
A database contains one or more schemas. Schemas organize the data objects inside the database, like folders inside a filing cabinet.
Click to reveal answer
intermediate
Why use multiple schemas in a Snowflake database?
Using multiple schemas helps separate data by project, team, or purpose. It improves organization, security, and access control.
Click to reveal answer
beginner
How do you create a new schema in Snowflake?
You use the SQL command: CREATE SCHEMA schema_name; inside the desired database to create a new schema.
Click to reveal answer
In Snowflake, what does a schema contain?
AUsers
BDatabases
CWarehouses
DTables and views
Which command creates a new database in Snowflake?
ACREATE DATABASE db_name;
BCREATE SCHEMA db_name;
CCREATE WAREHOUSE db_name;
DCREATE TABLE db_name;
What is the main purpose of using schemas in a database?
ATo organize and separate data objects
BTo store user passwords
CTo run queries faster
DTo create backups
Which of these is true about Snowflake databases?
AThey contain warehouses
BThey contain users
CThey contain schemas
DThey contain roles
How do you refer to a table inside a schema and database in Snowflake?
Aschema.database.table
Bdatabase.schema.table
Ctable.schema.database
Dschema.table.database
Explain the relationship between databases and schemas in Snowflake and why this structure is useful.
Think of databases as big folders and schemas as smaller folders inside.
You got /4 concepts.
    Describe how you would create and use multiple schemas in a Snowflake database for a team project.
    Consider how dividing work helps keep things clear and secure.
    You got /4 concepts.