Skip to main content

Run your first table query

Open SQL Editor from the workspace menu. You need permission to run SQL, a cluster you can use, and read access to a table in a connected catalog. If you cannot see SQL Editor, ask your workspace administrator to check your access.
  1. Choose your Catalog, Database, and Cluster.
  2. Replace your_catalog.your_schema.your_table with the full name of a table you can read. To see sample data, choose a table you know has rows.
  3. Click Run. In the results pane, look for the table’s columns and up to ten rows. An empty table returns zero rows.
  4. To find this run later, click Execution Time when it appears above the results. In Execution Details, copy the Query ID. Open Run History in the same workspace and filter by that ID. Find a run in Run History
For more ways to run SQL and work with output, see Run queries and view results.

Tabs

Organize work across multiple tabs:

Try a second version of a query

  1. In a new tab, run SELECT 1 AS version_number;. The result is 1.
  2. Above the editor, open More Options (three dots) and select Duplicate. The new tab contains the same SQL. Its results pane stays empty until you run the query.
  3. Double-click the new tab name and rename it Try version 2. Check the catalog, database, and cluster.
  4. In the new tab, change the SQL to SELECT 2 AS version_number; and run it. The result is 2. Switch back to the original tab to see its SQL still says 1.
Previous results stay with the original run. You can find it again in Run History. More Options also includes Keyboard Shortcuts (F1) and Format Query.

Query action bar

Above the editor, set the Catalog, Database, and Cluster to run against, choose a default row limit, and Run or Save the query. See Run queries and view results for running behavior and limits.

SQL editor

The editor helps you write SQL faster:
  • Auto-completion - suggests commands and functions as you type; press Tab to accept.
  • Find & Replace - Cmd/Ctrl + F, with regex (.*), case-sensitive (Aa), whole-word (\b), and search-in-selection options.
  • Error highlighting - the line or block containing an error is highlighted.

Keyboard shortcuts

Schema Explorer

The left-side pane shows the available and active catalogs as an expandable tree of catalogs, databases, and tables. From it you can:
  • Expand a catalog to see its databases and tables.
  • Click a table to list its columns with data types.
  • Copy a table name, or use a column’s kebab (⋮) to insert column names or preview data.
  • Click Reload Schema to reload the tree, or use search to find items you have expanded.
You can search for a database or table only after expanding its catalog and database.

Frequently asked questions

How do I find a table that is missing from Schema Explorer?

Check that you are in the right workspace. Expand the catalog, then the database that contains the table. If the table was just added or renamed at the source, follow the catalog refresh steps for your workspace. If it still does not appear, ask the catalog owner to check that the database is included and that you can read the table.

Why did my query return fewer rows than I expected?

The sample uses LIMIT 10, so it returns at most ten rows. An empty table or a filter that matches no rows can return zero. To check how many rows match, use COUNT(*) with the same filters. Check the editor’s default row limit

What should I do if the cluster cannot run my query?

Check the selected cluster and its state. When it is ready, try the read-only sample query again. If the message returns, note the time, the error message, and the Query ID if one is shown. Use these details to troubleshoot a Query Editor error.

See also

Last modified on November 24, 2026