Video | Snowflake | Data engineering | Analytics

Using the History Page to Learn Queries - Snowflake

I'm still learning Snowflake, so let me show you my trick: do it in the interface, then steal the SQL it writes for you.

Part ofGetting Started with Snowflake
  • Everything you do in the Snowflake interface generates an underlying SQL statement you can inspect and reuse
  • The Activity > Query History page shows the exact SQL Snowflake ran, including row limits like LIMIT 100
  • You can copy generated SQL into a worksheet to learn and re-run it, building up reusable scripts
  • Always highlight the specific line before hitting run to avoid executing your entire worksheet
  • You can switch between the modern Snowsight interface and the classic console, and save generated SQL to GitHub for reuse

The History History tab page allows you to view and drill into the details of all queries executed in the last 14 days. The page displays a historical listing of queries, including queries executed from SnowSQL or other SQL clients. It’s also a great place to find out what queries Snowflake is running on your behalf while using the front-end interface.

Using the History Page to Monitor Queries: https://docs.snowflake.com/en/user-guide/ui-history.html

00:00 - Intro 00:32 - Switch to Snowsight interface 01:42 - An example with select statement 03:30 - An example with creat database command 06:05 - Outro ‍