# Input SQL Data

To provide one or more SQLs:

* Select the *Connection Name* from the drop down menu.
* Select the desired schema.
* Provide the SQL and a name (the name should not have spaces).
* Click on *Validate.*
* If the SQL is valid, the SQL will be added to the list on the right side.

<figure><img src="https://2027008842-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaO8uOTM2rdJeIbVeXK0c%2Fuploads%2FycuwFVHhlR77BadzO4ep%2Fimage.png?alt=media&#x26;token=30d58cc5-1908-463c-9912-e3e89c151382" alt=""><figcaption></figcaption></figure>

### Instead of writing the SQL, we can also write the requirement in English&#x20;

Steps to write the requirement in English

* Select the *Connection Name* from the drop down menu.
* Select the desired schema.
* Provide the SQL and a name (the name should not have spaces).
* Select checkbox "Use AI SQL Assistance"
* Select all the tables, that are required for this SQL by clicking on "**Add Tables**"
* In "AI Prompt", enter English description.
* Click on "Generate SQL"

{% hint style="info" %}
**Example** : select all records from customers table who have placed orders from orders table after year 2023
{% endhint %}

{% hint style="info" %}
This is **beta** feature and there could be issues with generated SQL
{% endhint %}

{% embed url="<https://www.loom.com/share/6b7c5804f5a446bbb225960fb8e26345?sid=4b48aca7-0033-4510-99b9-938d1fb9408d>" %}
