Shares and listings
A share grants a consumer access to selected supported objects. A listing adds a discoverable offering and access arrangements around shared data or other supported products.
Understand the idea
A share is an access mechanism, not a CSV export. In direct same-region sharing, consumers query shared data without an ordinary copied dataset in their account. The provider controls what is exposed and can revoke access. Consumers use compute to query it.
| Concept | What it means |
|---|---|
| Share | A controlled set of object access grants for consumers. |
| Provider | The account publishing access to its data. |
| Consumer | The account using the shared data with its own access controls. |
| Listing | An offering with description and distribution/access settings. |
A concrete example
Northstar exposes a curated sales view to a partner. A private listing can describe the dataset and make it available to the intended consumer.
Remember: Sharing is deliberate access to selected data, not permission to edit the provider’s source tables.
Explain it step by step · full theory
Understand the idea
A share is an access mechanism, not a CSV export. In direct same-region sharing, consumers query shared data without an ordinary copied dataset in their account. The provider controls what is exposed and can revoke access. Consumers use compute to query it.
A listing helps package and distribute an offering. It can be private rather than publicly advertised. Cross-region or cross-cloud delivery can involve fulfillment, replication and costs, so do not extend the simple same-region model to every sharing arrangement.
Follow the example
The SQL only inspects shares visible to your role. Creating a share and adding consumers are administrative publication actions, so this introductory example does neither. No business data is published by the lesson.
A consumer should see only the intended interface. Before publication, identify sensitive columns, decide whether secure views are appropriate, and review the actual grants. A friendly listing description does not protect data if the underlying access is too broad.
The result lists shares visible to the role, if any. Running this command does not grant another account access.
Words used in this lesson
- Share
- A controlled set of object access grants for consumers.
- Provider
- The account publishing access to its data.
- Consumer
- The account using the shared data with its own access controls.
- Listing
- An offering with description and distribution/access settings.
See how it works
Choose a step to explore the idea at your own pace.
Open the interactive explanation
Shares and listings
Start with the requirement
Northstar exposes a curated sales view to a partner. A private listing can describe the dataset and make it available to the intended consumer.
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
- Start with the requirement
Northstar exposes a curated sales view to a partner. A private listing can describe the dataset and make it available to the intended consumer.
- Choose the objects
Compare the responsibilities: Share: A controlled set of object access grants for consumers.; Provider: The account publishing access to its data.; Consumer: The account using the shared data with its own access controls.
- Explain the outcome
Sharing is deliberate access to selected data, not permission to edit the provider’s source tables.
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.
Before running this lesson
Examples are for reading first. Optional execution requires an authorized learning account, a selected warehouse for queries, and privileges on the named objects. Nothing runs on this website.
Read the example
SHOW SHARES;What to expect and why
The result lists shares visible to the role, if any. Running this command does not grant another account access.
Check your understanding
Choose an answer, then check your reasoning. This is practice, not a scored test.
Try it yourself
A partner needs a selected sales dataset, not every table. Describe the publishing boundary.
Compare your reasoning
Expose only supported curated objects through the sharing mechanism and intended access settings. A listing describes and distributes the offering; it does not require sharing the entire database or giving source-table ownership to the consumer.