Skip to content

Run a Query

Write SQL in a workspace and run it on the workspace's datastore. Queries in Explore only read data: they never create, change, or delete it.

Related

Permission Required

Running a query needs the Author team permission or higher on every datastore the query reads. Users with the Admin role can run queries on any datastore. Without it, Run stays disabled and its tooltip gives the reason. See Permissions.

Step 1: Click Explore in the main menu and open a workspace from the Workspaces panel. To start one, see Create a Workspace.

Step 2: Type your SQL in the editor. Suggestions appear as you type, and Ctrl+Space opens them at any point. You can also drag tables and fields from Assets into the SQL.

Step 3: Click Run , or press Cmd+EnterCtrl+Enter.

The rows appear in the Results tab under the editor, with the row count and the run time in the results bar. The first 100 rows show first: scroll down to load more.

Several statements

When the editor holds several statements separated by ;, Run sends only the statement under the cursor. See Run Part of a Query.