Level 2 · Module 7 · Guided learning

Stages and file formats

A file has arrived. How does Snowflake find it, read it correctly and distinguish an unknown amount from zero? Follow four fictional orders from a CSV file to an understandable preview, one decision at a time.

Before you begin

You should understand databases, schemas and roles from the earlier modules, plus SELECT, aliases, NULL and casts from Module 5. Module 6 is the previous roadmap step; window functions are not required here. No account is needed to study the explanations.

Eight lessons, one connected example

Begin with the purpose of each object. Then choose a location, define CSV rules, handle missing values, upload and inspect the file, and preview the expected records. Finish with external storage, other formats and a practical troubleshooting exercise.

Each lesson includes a step-through diagram, important terms, a practical scenario, an explained question and a challenge with reasoning. SQL and result tables are illustrative; nothing runs on this website.

Keep three questions separate.

Where is the file? How should its bytes be interpreted? Where will the records go? A stage answers the first question, a file format helps answer the second, and a destination table answers the third. Uploading a file does not load table rows.

Explore the file-to-table diagram →

What you will be able to explain

Continue to Module 8: COPY INTO and data loading to validate, load and reconcile these records. This module prepares you to understand the source before writing it into a table.

Official references

Use these references alongside the worked examples for exact syntax, privileges and source-specific options.