Module 01 · Lesson 1 of 12Detailed study · about 20 min

What Snowflake does and when to use it

Snowflake is an online data platform where you can store business records and ask questions about them using SQL. Snowflake manages the underlying infrastructure; you organize the data and control access.

Understand the idea

An order is a record of a purchase. Put one order on each row and give each fact its own column: order ID, date and amount. Two amounts, 40 and 60, give total sales of 100. Asking for that total is a query.

Key ideas in simple English
ConceptWhat it means
SnowflakeManaged cloud platform for storing and processing data.
Use casesReporting, data pipelines, sharing and AI/ML workflows.
OLTPSmall operational transactions, such as placing an order.
OLAPAnalysis across many records, such as monthly sales.

A concrete example

Orders total 100 and refunds total 20. A reporting pipeline combines both to show net revenue of 80.

Remember: Start with the business question and the freshness it requires.

Explain it step by step · full theory

Start with one shop and two orders

An order is a record of a purchase. Put one order on each row and give each fact its own column: order ID, date and amount. Two amounts, 40 and 60, give total sales of 100. Asking for that total is a query.

SQL stands for Structured Query Language. SELECT asks for a result; AS gives that result a readable column name. A cloud platform lets you work through an online service instead of installing and maintaining the database servers yourself.

What is Snowflake?

Snowflake is a managed cloud data platform where teams store, process and analyze data using SQL and other supported tools.

Imagine a shop with an orders application, a payment service and a returns system. Each system knows part of the business. A Snowflake pipeline can bring their records together, reconcile order IDs and prepare a monthly revenue table. An analyst then queries that table from a browser or BI tool.

For the standard analytical workflow, storage keeps table data, a virtual warehouse supplies query compute, and cloud services coordinate operations. You choose access rules, data structure and compute settings. Snowflake operates the underlying platform infrastructure. These responsibilities explain why a successful signup alone does not produce a trustworthy report.

Use cases begin with a question

Business intelligence asks questions such as which product category had the largest monthly revenue. Data engineering prepares the tables that make that answer reliable. Data sharing makes approved datasets available to other teams or accounts. Data science and AI use governed data for model and application workflows.

For our shop, begin with a daily sales report. Define the record grain as one order, the refresh expectation as each morning, and the output as revenue by day. An order total of 100 and a refund of 20 should eventually produce net revenue of 80. Whether the refund arrived is a data-quality concern that query speed cannot resolve.

OLTP and OLAP describe different workloads

OLTP means online transaction processing. A checkout writes a small number of records and must preserve rules such as stock and payment consistency. OLAP means online analytical processing. A monthly report reads many records and groups them to reveal a pattern.

A checkout that changes one order is an OLTP example. A report that sums a million orders is an OLAP example. Snowflake standard tables are central to analytical workloads. Other table types, including hybrid tables, address additional use cases that we study later. Choose the table and workload together.

Practice with three requests. Reserving the final item in stock is transactional. Comparing total sales across 12 months is analytical. A live fraud system can combine both, using historical features while making a decision about a new transaction.

Words used in this lesson
SQL
A language for querying and changing structured data.
Virtual warehouse
Compute used to execute supported Snowflake operations.
Grain
What one record represents.

See how it works

Choose a step to explore the idea at your own pace.

Open the interactive explanation
Interactive explainer1 / 3

What Snowflake does and when to use it

Orders
Payments
Refunds

Sources

Business systems produce related records.

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
  1. Sources

    Business systems produce related records.

  2. Prepare

    The pipeline reconciles identifiers and definitions.

  3. Analyze

    Compute reads the prepared 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.

  1. No account yet? Read and predict the output first. Follow the account and Snowsight lesson when you are ready.
  2. 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.
  3. 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.
  4. 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.

Your first SQL result — no table required

SQL · example
SELECT 40 + 60 AS TOTAL_SALES;

What to expect and why

Returns one row and one column named TOTAL_SALES containing 100. SELECT asks for the calculation; AS names the result; the semicolon ends the statement. Read it now even if you have not set up an account.

Expected result for the supplied input (not live output)
TOTAL_SALES
100

Calculate a business total

SQL · example
SELECT SUM(COLUMN2) AS SALES_TOTAL
FROM VALUES ('order-1', 40), ('order-2', 60);

What to expect and why

Returns 100. This aggregates multiple records to answer an analytical question. It needs no source table; use an authorized warehouse. VALUES supplies two fictional rows directly inside the query. COLUMN2 refers to their second column, and SUM adds those amounts. You will learn this syntax gradually in Module 03.

Check your understanding

Choose an answer, then check your reasoning. This is practice, not a scored test.

Which request is analytical?

Try it yourself

Explain how the shop gets from three source applications to a daily sales report.

Compare your reasoning

Name the sources, join their records with an agreed order identifier, define how refunds affect revenue, prepare the reporting table and query it with a freshness check.

Official sources and curriculum

Module 01 · See module scope