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

Warehouses, lakes, lakehouses and traditional databases

A data warehouse brings organized data from different sources together for reporting and analysis. A data lake keeps files in varied formats. A lakehouse adds table-management and analytical capabilities over lake storage.

Understand the idea

Our shop may keep original CSV exports and product images in object storage, expose selected files through a table format, and publish cleaned sales tables for dashboards. These components can coexist. The architecture name describes a design approach, while individual products can support multiple approaches.

Key ideas in simple English
ConceptWhat it means
Data warehousePrepared, structured records that people can query consistently, such as sales by month.
Data lakeFiles in varied formats, such as raw order exports, logs and images.
LakehouseLake-oriented storage with table metadata and management for reliable analytical queries.
Virtual warehouseSnowflake compute that runs queries. Despite the similar name, it is not the stored business-data collection.

A concrete example

Keep original order exports in storage, then publish a cleaned SALES table for dashboards.

Remember: Choose the architecture from data, workload and operational requirements.

Explain it step by step · full theory

Start with the shape of your data

A warehouse organizes data for repeated analysis. A data lake stores files and objects in formats that can serve several processing systems. A lakehouse combines lake-oriented storage with table management and analytical capabilities.

Our shop may keep original CSV exports and product images in object storage, expose selected files through a table format, and publish cleaned sales tables for dashboards. These components can coexist. The architecture name describes a design approach, while individual products can support multiple approaches.

Compare a warehouse and a lakehouse through one record

Suppose order 101 arrives in a file. In a standard Snowflake table workflow, the ingestion process reads the file and stores a typed table record. A table has a numeric amount and a date that reports can query consistently.

In an open-table workflow, data files and table metadata work together. Metadata tracks which files belong to a table and how readers interpret them. Iceberg is one such table format. Storage ownership, catalog integration, supported writes and governance depend on the chosen configuration. Later modules teach those details.

Traditional database versus managed analytical platform

A traditional database may be operated on a company server or through a managed cloud service. Teams often choose a relational operational database for frequent small updates and application transactions. Snowflake brings managed analytical processing, independent warehouse compute and platform services to large-scale data work.

Compare responsibility and workload instead of relying on labels. Ask who handles upgrades, how capacity grows, what consistency the application needs and how many rows the queries scan. Managed databases also exist, and analytical features vary across products.

For the shop, retain the checkout system where it meets transaction requirements and deliver analytical records into a governed reporting workflow. The integration needs a way to capture corrections and late refunds.

Words used in this lesson
Data lake
Storage and organization of source objects and files.
Lakehouse
An architecture combining lake storage with table and analytical capabilities.
Catalog
A system that describes and helps manage data assets.
Data warehouse
A system that integrates and organizes data for reporting and analysis.

See how it works

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

Open the interactive explanation
Interactive explainer1 / 3

Warehouses, lakes, lakehouses and traditional databases

CSV
Images
Application rows

Store

Preserve the source according to its purpose.

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. Store

    Preserve the source according to its purpose.

  2. Organize

    Choose table management and ownership.

  3. Serve

    Prepare the access pattern the consumer needs.

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.

Query structured sample data

SQL · example
SELECT COLUMN1 AS REGION, SUM(COLUMN2) AS TOTAL
FROM VALUES ('East', 40), ('West', 60), ('East', 20)
GROUP BY COLUMN1 ORDER BY REGION;

What to expect and why

East totals 60 and West totals 60. This illustrates a warehouse-style analytical query. There is no SQL command that turns this sample into a lakehouse; storage and catalog design determine that architecture.

Check your understanding

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

What makes a lakehouse more than a folder of files?

Try it yourself

Describe where original files and curated sales tables fit in the shop architecture.

Compare your reasoning

Original files provide the delivered source. Curated tables enforce agreed structure and business meaning for consumers. Document the refresh and correction path between them.

Official sources and curriculum

Module 01 · See module scope