Understand accounts, organizations and identifiers
An organization groups accounts. Each account contains its own users, roles and objects.
Understand the idea
Our fictional company has a learning account and a production account. Both can contain a database called SALES. The same database name does not make them the same object. Include the account identity when diagnosing where a query ran.
| Concept | What it means |
|---|---|
| Organization | Administrative grouping of accounts. |
| Account | The boundary containing warehouses, databases and users. |
| Identifier | Clients commonly use organization-account, such as acme-learning. |
| Hostname | Often acme-learning.snowflakecomputing.com. Copy the correct value from connection details. |
A concrete example
SALES.PUBLIC.ORDERS in the learning account and the same name in production identify different tables.
Remember: Confirm account, role, warehouse, database and schema before querying.
Explain it step by step · full theory
An account is your working boundary
A Snowflake account contains users, roles, databases, warehouses and other objects. You authenticate to an account and work with the privileges granted to your active roles.
Our fictional company has a learning account and a production account. Both can contain a database called SALES. The same database name does not make them the same object. Include the account identity when diagnosing where a query ran.
An organization groups accounts
An organization provides an administrative relationship among accounts. A company can use separate accounts for environments, regions or organizational requirements.
Membership in the same organization does not automatically grant a user access to another account’s tables. Data sharing, replication and independent copies each have their own setup. In Level 0, remember the boundary so later environment lessons make sense.
Use the identifier format required by the client
A common account identifier combines organization and account name, such as acme-learning. A hostname commonly adds .snowflakecomputing.com. A browser URL can contain a different path structure. Copy connection details from the account’s connection information and follow the selected driver’s format.
The Python connector account parameter and the CLI account setting commonly accept the organization-account identifier without a URL scheme. JDBC and ODBC typically use a server hostname in their connection configuration. Legacy account locators can require additional region/cloud components, so avoid guessing a hostname from an unfamiliar locator.
Record the account identifier, host, user, role, warehouse, database and schema in a connection checklist. Store authentication material through the approved authentication mechanism. This lets you compare two clients without confusing their input formats.
Words used in this lesson
- Organization
- An administrative grouping of accounts.
- Account identifier
- The client-facing identity of a Snowflake account.
- Namespace
- The database and schema used for object resolution.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Understand accounts, organizations and identifiers
Organization
A company groups its accounts.
Automatic playback is off for reduced motion. Select any step or use Previous and Next. Illustrations explain behavior; they are not live measurements.
Read the complete diagram explanation
- Organization
A company groups its accounts.
- Account
Connect to the intended boundary.
- Context
Resolve the correct objects within it.
Try the SQL or command
Read → predict → run in your learning environment → compare. You can also learn by reading without an account.
New to SQL? Where to run it and how to read it
A query is a question written in SQL. Snowflake runs it and returns a result table. This website shows examples; it does not connect to your account.
- No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
- For SQL practice, use a learning account in Snowsight and select an authorized role and warehouse. A role determines permissions; a warehouse supplies processing power. Follow the example’s database/schema setup when it refers to stored objects.
- Read the entire example, including comments beginning with
--. Run the selected statement or labeled block in the stated order. Examples labeled Python, shell or HTTP belong in that client, not in a SQL editor. - Compare values and row counts with the explained result. If an example deliberately causes an error, follow its rollback and cleanup steps before continuing.
- SELECT / FROM
- Choose the values to return / identify their input.
- VALUES / COLUMN1
- VALUES supplies tiny example rows. COLUMN1 means their first column, COLUMN2 their second.
- AS / WITH
- AS gives a result a readable name. WITH names a temporary query step within one statement.
- NULL / ::
- NULL means missing or unknown. The :: notation converts a value to a named data type.
- Session
- One connection and its settings. Keep related transaction steps in the same session.
- Database.schema.table
- A full address for stored data. It is separate from the warehouse that processes queries.
Help with common practice errors
- No active warehouse: select a warehouse your role can use. Do not assume you need to create a new one.
- Object missing or not authorized: check the full name, required setup and active role. Ask the account owner for access if needed.
- Object already exists: setup may already have run. Read the current state or choose a fresh lab name consistently; do not add OR REPLACE blindly.
- Different result: check whether an earlier INSERT or UPDATE changed the data. VALUES examples provide their own fresh input for each statement.
Observe the connected account and session context
SELECT CURRENT_ORGANIZATION_NAME() AS organization_name,
CURRENT_ACCOUNT_NAME() AS account_name,
CURRENT_USER() AS user_name,
CURRENT_ROLE() AS role_name,
CURRENT_WAREHOUSE() AS warehouse_name,
CURRENT_DATABASE() AS database_name,
CURRENT_SCHEMA() AS schema_name;What to expect and why
Values come from your session. A NULL warehouse or namespace means it is not currently selected. Compare the returned account and role with your setup notes before using a client to access data.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
Prepare the non-secret connection checklist for your learning account.
Compare your reasoning
Record organization/account identifier and host separately, then user, allowed role, warehouse and namespace. Confirm the expected format in each client.
Official sources and curriculum
Module 01 · See module scope