# Query

## What is Query in QATTS?

**Add Query** write Queries on different Databases without much needed additional system files and code to execute the query. Its functionality is to execute the SQL queries on the Database. Normally, if you want to execute a query on the database you have to install a Database tool to perform the tasks. such as installing a Database as Oracle Db or MySQL.

## Step by step walkthrough

To add Query follow the below steps.

**STEP 1**:  Click on **Studio** on the Left Navigation Panel, it directs to new window which will be appearing as shown below.

![A new window is opened after clicking on the Studio](/files/-MgpSeICOkIC4wEvjWBv)

**STEP 2**: On the right corner Click on "**+**" icon and select **Add Query**, it should appear as below.

![](/files/-MhIAU5n7D2Vo58W_yKU)

**STEP 3**: Fill the required details as shown in the below screenshot.

![](/files/-Mkaerq7zYHOpVfQ5Uvr)

* **Query Name:** The name could be any of the user choice.
* **Description:** Describe the action of the query.
* **Alias Name:**
* **Query:** Here user can write the query, it could be of any depending on the requirement.

**STEP 4**: After adding the required details click on Save and the data will be added in the Group you have Selected.

## Short Video

![](/files/-MkaeSGWjk339dNMKsRZ)


---

# 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.qatts.com/automation/objects/query.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.
