Skip to main content

Getting Started with Snowsight

Snowsight is Snowflake's standard web interface. With just a browser, you can run SQL, explore data, load data, monitor activity, and manage users and costs. This page covers the first things to learn after logging in to Snowflake for the first time.

The UI keeps evolving

Snowsight's menus and labels are updated frequently. If this page differs from what you see, prefer the official documentation and the labels on screen.

What you can do in Snowsight​

  • Run SQL: write and execute queries in worksheets, and view results as tables or charts.
  • Develop in Python: run Python code on Snowflake in Snowpark Python worksheets and notebooks.
  • Explore data: browse databases, schemas, tables, views, and other objects.
  • Load data: upload local files and manage stages.
  • Monitor: inspect query history, data loading history, task runs, and warehouse usage.
  • Administer: manage users, roles, privileges, costs, and security settings.

UI layout​

After logging in, the left navigation gives you access to each area. The main functional areas are:

AreaMain capabilities
HomeShortcuts to recently used objects, queries, and dashboards
Workspaces / WorksheetsWrite and run SQL and Python, organize files, integrate with Git
NotebooksCell-based environment for Python, SQL, and Markdown
Data / CatalogExplore databases and tables (Horizon Catalog) and the Marketplace
MonitoringQuery History, Copy History, Task History, Performance Explorer, and more
ComputeManage virtual warehouses and compute pools
AdminUsers and roles, cost, security, and integrations

Which menus appear depends on your role (privileges). Administrative areas are only visible to roles such as ACCOUNTADMIN.

Worksheet basics​

Creating a worksheet and running a query​

  1. Click + Create in the upper left and choose SQL Worksheet.
  2. Enter SQL and run it with Cmd + Enter (macOS) or Ctrl + Enter (Windows).
  3. Results appear in the pane below. Switch to the Chart tab for a quick visualization.
-- Your first query
SELECT CURRENT_TIMESTAMP() AS now,
CURRENT_USER() AS current_user,
CURRENT_ROLE() AS current_role;

Switching context​

A worksheet runs queries in a "context" that you choose with the selectors at the top of the worksheet, or with SQL:

ContextHow to set itPurpose
RoleUSE ROLEThe set of privileges in effect
WarehouseUSE WAREHOUSEThe compute that runs the query
DatabaseUSE DATABASEThe default database
SchemaUSE SCHEMAThe default schema
USE ROLE SYSADMIN;
USE WAREHOUSE COMPUTE_WH;
USE DATABASE SNOWFLAKE_SAMPLE_DATA;
USE SCHEMA TPCH_SF1;

If you write fully qualified names such as database.schema.table, you do not need to switch context first.

A note on roles​

Roles are the basic unit of privilege management in Snowflake. System-defined roles (ACCOUNTADMIN, SYSADMIN, PUBLIC, and others) are available from the start. By default, "secondary roles" are also enabled, so privileges from other roles are available in addition to your primary role. Access control is covered in its own page.

Hands-on with sample data​

Every Snowflake account has access to the shared sample database SNOWFLAKE_SAMPLE_DATA. It contains TPC-H sample data (customers, orders, and more) at several scales (TPCH_SF1, TPCH_SF10, and so on), so you can practice without any setup.

Aggregate customers by market segment:

SELECT c_mktsegment AS segment,
COUNT(*) AS customers
FROM SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.CUSTOMER
GROUP BY c_mktsegment
ORDER BY customers DESC;

Aggregate orders by month:

SELECT DATE_TRUNC('month', o_orderdate) AS order_month,
COUNT(*) AS order_count,
SUM(o_totalprice) AS total_amount
FROM SNOWFLAKE_SAMPLE_DATA.TPCH_SF1.ORDERS
GROUP BY order_month
ORDER BY order_month
LIMIT 12;
If your first query is slow

Virtual warehouses suspend automatically when idle. The first query after suspension may take a few seconds while the warehouse resumes. Subsequent queries return quickly.

Checking query history​

Queries you run are listed under Query History in the Monitoring area.

  • The list shows status (success, failed, running), duration, bytes scanned, the warehouse used, and the user who ran it.
  • Filters let you narrow by user, warehouse, time range, and status.
  • Selecting a query shows details, and Query Profile reveals the execution plan and bottlenecks (covered in the query optimization page).

Data loading history is available under Copy History, and task runs under Task History.

Shortcuts and handy features​

  • Cmd/Ctrl + Enter: run the selection (or the statement at the cursor if nothing is selected).
  • Export results: download results as CSV and other formats from the results pane.
  • Charts: visualize results as bar, line, and other simple charts.
  • Version history and sharing: worksheets are saved automatically, and you can view version history and share worksheets with other users.
  • Switch roles: use the user menu in the lower-left corner to switch roles and accounts.

As next steps, see Database Objects and Namespaces for creating objects, and Snowflake Architecture for how it all works.


References​