# Query Editor

{% hint style="warning" %}
The [DataAnalyst role](https://docs.e6data.com/product-documentation/access-control/roles) must be assigned to each user who needs access to the Query Editor, ***including SuperAdmins.***

***Please be sure to use it cautiously, as it provides access to*** [***read potentially sensitive data***](https://docs.e6data.com/product-documentation/faqs/security#what-data-other-data-moves-outside-the-data-plane)***.***
{% endhint %}

The Query Editor provides an environment to write and execute SQL statements, including quick access to running clusters and catalogs. The results of queries can also be viewed.

You can access the Query Editor at any time by clicking **Query Editor** on the left navigation menu.&#x20;

The Query Editor consists of the following sections:

* [Editor Pane](https://docs.e6data.com/product-documentation/query-editor/editor-pane)
  * [Run a SQL query](https://docs.e6data.com/product-documentation/editor-pane#run-a-sql-query)
  * [Auto-Completion](https://docs.e6data.com/product-documentation/editor-pane#auto-completion)
  * [Tab Management](https://docs.e6data.com/product-documentation/query-editor/editor-pane)
  * [Other Features](https://docs.e6data.com/product-documentation/editor-pane#other-features-of-the-editor-pane)
* [Results Pane](https://docs.e6data.com/product-documentation/query-editor/results-pane)
  * [Query Execution Plan](https://docs.e6data.com/product-documentation/results-pane#query-execution-plan)
* [Schema Explorer](https://docs.e6data.com/product-documentation/query-editor/schema-explorer)
* [Data Preview](https://docs.e6data.com/product-documentation/query-editor/data-preview)

<figure><img src="https://3484040590-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeVBYKZm1xFKFFVzS0lRJ%2Fuploads%2FgDEyKTHJYfaB2crEwqVI%2FScreenshot%202023-12-26%20at%2012.18.27%20PM.png?alt=media&#x26;token=47bb4551-482e-4b62-85a8-e5e3e96938e2" alt=""><figcaption><p>Query Editor</p></figcaption></figure>

{% embed url="<https://www.loom.com/share/c760e9a1343543b2aa5b31fa7aecefa1?sid=42133da8-5532-4ed5-84c0-bb10b5053211>" %}
Query Editor Walkthrough
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.e6data.com/product-documentation/query-editor.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
