This week we’re looking into another feature that most starters haven’t touched before :
SnowSQL
“SnowSQL is the command line client for connecting to Snowflake to execute SQL queries and perform all DDL and DML operations, including loading data into and unloading data out of database tables.” (https://docs.snowflake.com/en/user-guide/snowsql.html)
This week, we’re going to ask you to use it for one of the features that it’s best known for however: the Bulk loading feature.
You’ve been asked to upload some files into a table and the Sales Manager said that “it’ll only take you about 2 minutes”.
So we’re pretty clear that it’ll take us at least 15 .
The challenge :
- Download the zip file containing the CSV files here
- Download and install SnowSQL on your machine from this page
- Connect to your Snowflake instance with SnowSQL
- Bulk load the files ending with a ‘1’ (data_batch_1-1.csv, data_batch_1-11.csv etc.)
- skip any erroneous file
The desired result should look like this :

Remember, if you want to participate:
Another fun challenge to finish off the week, thanks!
Today was the first snow of the season – let it snow 🙂
Aaah, thanks for the weekly fix!
I’ve been trying to do all the challenges so far using dbt, even if it wasn’t the best option just to get more familiar with its limitations / possibilities.
This one… well, let’s do it entirely in snowsql 🙂
https://github.com/dsmdavid/frostyfridays-sf/blob/main/extra/ch_23.sql
Note:
snowsql -f allows you to run a file which is the one the link above points to.
Matt, let it snow indeed
Easy one, but I hardly ever use SnowSQL, so it was a nice refresher!
Really enjoyed this one!
nice!
First Frosty Friday challenge. I removed trial and error parts from the code.
Learning a bit on the cmd window, never used it before.