# Run a Query

Source: https://userguide.qualytics.io/explore/how-tos/queries/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.

> **Info: Related**
>
> - Concept: [Query Editor](https://userguide.qualytics.io/explore/deep-dive/query-editor/) for suggestions, shortcuts, and what **Run** sends, and [How It Works](https://userguide.qualytics.io/explore/deep-dive/how-it-works/) for what happens after you click it.
> - [Run Part of a Query](https://userguide.qualytics.io/explore/how-tos/queries/run-part-of-a-query/) and [Stop a Query](https://userguide.qualytics.io/explore/how-tos/queries/stop-a-query/).
> - API: [Explore API](https://userguide.qualytics.io/explore/api/).

> **Note: 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](https://userguide.qualytics.io/explore/deep-dive/permissions/).

**Step 1:** Click **Explore**  in the main menu and open a workspace from the **Workspaces** panel. To start one, see [Create a Workspace](https://userguide.qualytics.io/explore/how-tos/workspaces/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`+`Enter``Ctrl`+`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.

> **Tip: Several statements**
>
> When the editor holds several statements separated by `;`, **Run** sends only the statement under the cursor. See [Run Part of a Query](https://userguide.qualytics.io/explore/how-tos/queries/run-part-of-a-query/).

*Last updated: November 23, 2026.*
