# Testing SQL Query Databoxes

This is best shown in an example. Once your SQL is crafted and appropriate Expressions have been added, click the **Test** button. As the description says, this query will return all columns from an Asset table. A number of Expressions will test or retrieve the returned data.

<figure><img src="/files/ircyKAyFk4JeDM75ggnR" alt=""><figcaption><p>Extracting data (here, from an external database connection)</p></figcaption></figure>

This will present a dialogue as shown below. In this example, you can see the DataBox **Import.AssetID** needs to be supplied; you should enter any test values and click **Evaluate**. In this case, **100** has been entered and in the **Results** section you can see the full result (which is provided in the form of an XML snippet) and the accompanying results of the Expressions:&#x20;

<figure><img src="/files/eTlYahTL4bK6sbmf3i2B" alt=""><figcaption><p>Testing your SQL query</p></figcaption></figure>

{% hint style="info" %}
Caution: it is important that your SQL queries return a single row of data - [read more here](/product-suite/admin/entities/databoxes/sql-query.md#multiple-rows-of-data).
{% endhint %}


---

# 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.keyfax.biz/product-suite/admin/entities/databoxes/sql-query/testing-sql-query-databoxes.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.
