# Use Query tab

In addition to [using SQL cells](sql-cells.html), Datalore allows you to run SQL queries against [connected databases](configure-a-database-connection.html) outside the notebook environment. This provides a faster way to inspect data, validate access, and troubleshoot issues before launching a full workflow.

You can run queries only for existing database connections. The `Query` tab is not available when you are configuring a new connection.

> **Tip:**
> You can also run queries for database connections that require OAuth authentication.

> **Note:**
> Support for database connections that require OAuth authentication is coming in version 2026.3.

Procedure: Run database queries

1. In the sidebar on the Home page, select the workspace where you want to run a query.

2. In the workspace resources, select ![Document](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/document.svg)Data and switch to the Databases tab.

![Databases tab](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/ws-databases-cb.png)

3. Select the database connection.

4. Switch to the Query tab.

5. Enter your query and click Execute query.

![A Database connection dialog with the Query tab opened](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/db-query-tab.png)

> **Note:**
> The query editor supports syntax highlighting. Autocompletion and other editor assistance features are not currently available.

6. Explore the query results in Data explorer:

* Use the table view to review data. ![Query results displayed in the table view of Data explorer](https://resources.jetbrains.com.cn/help/img/datalore/2026.3/db-query-de-table.png)

* Switch to the visualization view to create charts and explore trends.

> **Tip:**
> You can also:
>
>
>
> * Apply transformations and filters
>
> * Download results as `.csv` or `.xlsx` files
>
> * Export visualizations as `.png` or `.svg` files
>
>
>
> For more details, see [Data explorer](data-explorer.html).

> **Note:**
> Queries and results are not saved after you close the dialog.

