# Data Query Name

{% hint style="info" %}
**Block Information**

Available in: Page Flow and Cloud Flow

Toolbox Category: Data

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

Output Type: [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types)
{% endhint %}

**`Data Query Name`** is an [output block](https://docs.zingy.ai/app-editor/block-anatomy#output-block) that provides the name of the selected [Database Query](https://docs.zingy.ai/app-editor/data/database-queries). The selection is done via a [Selectable Input](https://docs.zingy.ai/app-editor/block-anatomy#selectable-input) which enables you to pick from a list of queries for a specified [database table](https://docs.zingy.ai/app-editor/data/database-tables).&#x20;

The output is of type [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) and is compatible with [Value Parameters](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) of type [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) or of type [*any*](https://docs.zingy.ai/app-editor/page-flow/references/value-types).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FaejWEkuKa4iPthyXzrSu%2Fimage.png?alt=media&#x26;token=1e8ea6cc-c165-40e9-be52-da1e41906c17" alt="" width="189"><figcaption><p>Data Query Name block</p></figcaption></figure></div>

The block consists of a [Selectable Input](https://docs.zingy.ai/app-editor/block-anatomy#selectable-input) to choose the database query.&#x20;

{% hint style="warning" %}
To display the list of queries, the **`Data Query Name`** block requires the following:

* &#x20;The **`Data Query Name`** block must be attached to a [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) of another block.
* The attached block must have a table selection [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) linked to either a [Data Table Name](https://docs.zingy.ai/app-editor/page-flow/toolbox-blocks/data-table-name) or a Text block.
  {% endhint %}
