Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.
| Field | Detail |
|---|---|
| Repository | snowflake-lab |
| Primary language | Mixed / documentation |
| Topics | analytics, cloud, data-warehouse, database, database-labs, devarent, lab, snowflake, sql |
| License | MIT |
| Branch | main |
| Maintainer | @devarent |
snowflake-lab is a hands-on repository focused on: Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.. Primary language: Mixed / documentation. Topics: analytics, cloud, data-warehouse, database, database-labs, devarent, lab, snowflake, sql. The README below documents the project; use the table above for a quick overview.
🇮🇸 Iceland · 🇳🇿 New Zealand · 🇨🇭 Switzerland · 🇸🇮 Slovenia · 🇮🇪 Ireland · 🇦🇹 Austria · 🇵🇹 Portugal · 🇸🇬 Singapore · 🇫🇮 Finland
Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.
Snowflake separates storage from compute, and the SQL surface reflects that: virtual warehouses, stages, file formats, and zero-copy clones. This lab uses a free trial account and gives you a compact schema plus the statements that show how the platform works.
- Create a Snowflake trial account and open a worksheet.
- Run
examples/01_setup.sqlto create the warehouse, database, schema, and tables. - Run
examples/02_queries.sqlto seed and query the data. - Run
examples/03_stages.sqlto create an internal stage and inspectCOPY INTO. - Optional: install SnowSQL and run the same files with
snowsql -f.
| Field | Value |
|---|---|
| Account URL | https://<account>.snowflakecomputing.com |
| Warehouse | LAB_WH |
| Database / schema | LAB_DB.RAW |
| CLI | snowsql -a <account> -u <user> |
| JDBC URL | jdbc:snowflake://<account>.snowflakecomputing.com/?db=LAB_DB&schema=RAW&warehouse=LAB_WH |
| File | What it shows |
|---|---|
examples/01_setup.sql |
Warehouse, database, schema, and two tables. |
examples/02_queries.sql |
Seed data, QUALIFY, and time travel. |
examples/03_stages.sql |
An internal stage and a COPY INTO template. |
- Create a zero-copy clone of
LAB_DB.RAWand modify the clone without touching the original. - Add a clustering key to
ordersand compare the query profile before and after. - Load a small CSV through an internal stage and validate the row count.
- Suspend
LAB_WHand confirm that queries fail until it resumes.
- A Snowflake trial account is time-limited and may have credit limits. Suspend
LAB_WHwhen idle. - Snowflake is cloud-only; there is no official local emulator used in this lab.
- Time travel depends on the table retention setting and the account edition.
- Never commit credentials. Use SnowSQL config profiles or environment variables.
This lab already runs in the provider's cloud. To use it from another country safely:
- Keep the account behind MFA and restrict network access to your IP or VPN where the provider allows it.
- Use a dedicated lab user with the minimum privileges; never reuse personal credentials.
- Store tokens and passwords in a secret manager or environment variables, never in the repository.
- Stop or delete the warehouse, cluster, or VM when you finish to control cost.
The shared checklist and provider map are in REMOTE-ACCESS.md.
Part of the database-labs collection: 26 database engines, one index.
MIT (c) 2026 Arya Fatthurahman. See LICENSE.
Full Tech Stack Wall
Connection names shown in the DBX sidebar - decorative reference badges.