The Snowflake Object Hierarchy
SnowPro Core · Lesson 3 of 27 · 14:05
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the SnowPro Core Certification exam (COF-C03). In this lesson: organizations and accounts, databases and schemas, the objects inside a schema, and shares and applications. Follows Foxglove Apparel, a fictional online clothing retailer. Includes three original practice questions.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
Where everything lives
Foxglove Apparel is setting up its Snowflake account: raw files from the web shop, cleaned order tables, views for dashboards, and forecasting models. Before it grants any access or tracks any cost, it must decide where each object belongs. This lesson walks through the Snowflake object hierarchy, from the organization down to a single table.
Organizations and accounts
The top container is the organization, which groups all the accounts of one company. An organization account, with the GLOBALORGADMIN role, manages the life cycle of those accounts and shows usage across the organization. Each account sits in one region, on one cloud platform. And some objects belong to the account itself: users, roles, virtual warehouses, databases, resource monitors, integrations, and network policies.
Databases and schemas
All data in Snowflake is stored in databases. A database holds one or more schemas, and a schema is a logical grouping of objects, such as tables and views. So an object's full name has three parts: the database, the schema, and the object. Snowflake sets no hard limit on the number of databases, schemas, or objects.
Objects inside a schema
Inside a schema, tables hold the data, and views save a query that you read like a table. Stages point to where data files are stored, inside Snowflake or in external cloud storage, and file formats describe how to read those files, such as CSV, JSON, or Parquet. Sequences generate unique numbers across sessions, for example for keys, but the numbers can have gaps. Lesson eight covers the kinds of tables and views.
Code and automation objects
User-defined functions compute and return a value that you use inside a SQL statement, written in SQL, Python, Java, Scala, or JavaScript. Stored procedures run with the CALL command, and they perform administrative work, such as D D L and D M L statements, without having to return a value. A procedure runs with its owner's rights by default, or you can make it run with the caller's rights. Pipes hold a COPY INTO statement that Snowpipe runs as new files arrive. And machine learning models are schema-level objects, stored in the model registry.
Shares and applications
A share is the object that a provider uses to give other accounts access to selected databases, schemas, and objects, without copying any data. An application is a Snowflake Native App, installed in your account from a listing, with its own data and logic. Lessons twenty six and twenty seven cover both in detail. For now, remember that they connect your account with other accounts.
Putting it together
Here is Foxglove's layout. A raw database holds stages, file formats, and pipes for the incoming files. An ANALYTICS database has a schema for each team, with tables, views, and functions, and a schema for the forecasting models. And the warehouses and roles sit at the account level, beside the databases.
Recap
Let's recap. The organization groups the accounts, and each account sits in one region on one cloud. Users, roles, warehouses, databases, and integrations are account-level objects. Databases hold schemas, and schemas hold tables, views, stages, file formats, and sequences. Functions return values inside SQL, while procedures run with CALL and use the owner's rights by default. And shares and applications connect your account with other accounts.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Foxglove creates a virtual warehouse for its finance team. Where in the hierarchy does that warehouse live?
- At the account level
- Inside the finance database
- Inside a schema, beside the tables
- Inside the organization account
Show the answer
At the account level
A virtual warehouse is an account-level object, like users, roles, and databases. “Inside the finance database” is wrong, since a warehouse does not belong to any one database, and it can query all of them. “Inside a schema, beside the tables” puts it inside a schema, which holds tables, views, and other database objects. And “Inside the organization account” is wrong, since the organization account manages accounts, not every warehouse.
Foxglove needs logic that turns a product’s measurements into a size code, and analysts will use it inside SELECT statements over millions of rows. Which kind of object fits?
- A stored procedure
- A pipe
- A user-defined function
- A sequence
Show the answer
A user-defined function
A user-defined function returns a value, so it can be called inside a SELECT statement for every row. “A stored procedure” runs with the CALL command, on its own, so it cannot be used inside a SELECT statement. “A pipe” loads files as they arrive, and computes nothing. And “A sequence” only generates unique numbers.
Many stages and COPY INTO commands at Foxglove read the same kind of CSV file, with a header line and pipe delimiters. Which kind of object avoids repeating those settings everywhere?
- A sequence
- A named file format
- A view
- A pipe
Show the answer
A named file format
A named file format stores the settings once, and stages and COPY INTO commands can reference it. “A sequence” generates unique numbers, and describes no files. “A view” saves a query over tables, not the layout of a file. And “A pipe” runs a load, and it would still need the format settings.