Skip to content

About

Practice Snowflake SQL: warehouses, databases, stages, `COPY INTO`, `QUALIFY`, and time travel.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snowflake-lab

Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.

At a glance

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

Overview

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.

Global references

🇮🇸 Iceland · 🇳🇿 New Zealand · 🇨🇭 Switzerland · 🇸🇮 Slovenia · 🇮🇪 Ireland · 🇦🇹 Austria · 🇵🇹 Portugal · 🇸🇬 Singapore · 🇫🇮 Finland


snowflake-lab LANG multi STARS 0 LICENSE MIT
OPEN SOURCE BUILT IN PUBLIC HANDS ON LABS DOCUMENTED

Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.


Arya Fatthurahman

Snowflake Lab

Practice Snowflake SQL: warehouses, databases, stages, COPY INTO, QUALIFY, and time travel.

Database: Snowflake Category: Cloud data warehouse Runs in Cloud License: MIT

What this lab is

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.

Quickstart

  1. Create a Snowflake trial account and open a worksheet.
  2. Run examples/01_setup.sql to create the warehouse, database, schema, and tables.
  3. Run examples/02_queries.sql to seed and query the data.
  4. Run examples/03_stages.sql to create an internal stage and inspect COPY INTO.
  5. Optional: install SnowSQL and run the same files with snowsql -f.

Connection details

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

Examples

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.

Exercises

  1. Create a zero-copy clone of LAB_DB.RAW and modify the clone without touching the original.
  2. Add a clustering key to orders and compare the query profile before and after.
  3. Load a small CSV through an internal stage and validate the row count.
  4. Suspend LAB_WH and confirm that queries fail until it resumes.

Notes and limits

  • A Snowflake trial account is time-limited and may have credit limits. Suspend LAB_WH when 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.

Run it from anywhere

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.

References


Part of the database-labs collection: 26 database engines, one index.

License

MIT (c) 2026 Arya Fatthurahman. See LICENSE.


Tech Stack

Git
Full Tech Stack Wall

Languages
Rust Go TypeScript JavaScript Java Python C C++ Kotlin Swift Ruby PHP Lua Shell

Frontend & Desktop
Vue React Svelte Next.js Nuxt Flutter React Native Tauri Electron Vite HTML5 CSS3 Sass Less Tailwind CSS Bootstrap Three.js Node.js jQuery

Database & Storage
MySQL PostgreSQL SQLite SQL Server Oracle Redis MongoDB DuckDB ClickHouse Elasticsearch Neo4j InfluxDB Cassandra DynamoDB Firebase Supabase MinIO Firebird IBM DB2 MariaDB CockroachDB IRIS Databricks SQL Snowflake Qdrant Redshift Apache Kylin BigQuery VictoriaMetrics Databend TDengine Teradata

Messaging & Streaming
Kafka RabbitMQ RocketMQ Pulsar Flink

DevOps & Cloud Native
Docker Kubernetes Terraform Ansible Jenkins GitHub Actions GitLab CI Prometheus Grafana Nginx AWS Azure Cloudflare

Tools & Platforms
Git Linux macOS VS Code Vim Tmux Homebrew Postman Figma Markdown Maven Gradle CMake

Hands-on engineering, built and documented in the open.

DBX Connections

Firebird_5n1b JDBCX_d5pn IBM DB2_0leg MariaDB_80g9 SQL Server_wieh CockroachDB_mo9c IRIS_cz3h Databricks_SQL_rmue Snowflake_cm_h9 Redis_u0tv Qdrant_1r3s Elasticsearch_zfc3 Cassandra_d8eb MongoDB_vexq Redshift_p9d7 Apache Kylin_xmpz Neo4j_j3dsg BigQuery_homk Apache Kafka_xpqk VictoriaMetrics_m3sf InfluxDB_wuju Databend_dey6 TDengine_4c9i Teradata_rwlm

Connection names shown in the DBX sidebar - decorative reference badges.

About

Practice Snowflake SQL: warehouses, databases, stages, `COPY INTO`, `QUALIFY`, and time travel.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors