Study FAQ
How do databases, schemas, tables, and views fit together in Snowflake?
Also asked as 2
- How does Snowflake organize tables and views within databases and schemas?
- What does a fully qualified Snowflake table or view name identify?
Answer
A Snowflake database contains schemas. A schema groups related objects such as tables, views, stages, file formats, streams, and tasks. Use database.schema.object in automation when the session’s current database and schema could vary. For example, ANALYTICS.REPORTING.DAILY_ORDERS identifies the object DAILY_ORDERS in the REPORTING schema of ANALYTICS.
A table holds data. A standard view keeps a query definition and returns results when referenced. A materialized view has separate storage and maintenance behavior. Use databases and schemas to set naming, ownership, deployment, and access boundaries. Access depends on privileges on the relevant containers and object.
The namespace is logical. Moving a standard table to a different schema changes how clients reference it and which container privileges they need. The move itself leaves the table’s micro-partition organization intact.
Databases, tables, and views · Object name resolution · Overview of views
Full explanation
Snowflake Objects, Micro-partitions, and Data Organization
Study guide · COF-C03
Read the full explanation