# How to Use

To get started with SQL Assistant, you will need to provide a Data Definition Language (DDL) segment and a task description.

* **DDL** **segment** – a subset of SQL commands, objects, attributes, and constraints that is focused on defining or modifying the structure of database objects.
* **Task description** – instructions related to the DDL that tells SQL Assistant what you need help with.

<figure><img src="/files/ZS8fyAdSpIJA3qhMWSav" alt="sql assistant 2"><figcaption></figcaption></figure>

The default placeholder prompt that loads whenever you create a new chat with SQL Assistant, models how to create your own prompts:

* The DDL statement creates a table called ‘transactions’ with 5 columns (transaction\_id, customer\_id, transaction\_date, amount, and description).
* The task description asks SQL Assistant to provide a query that will print all the transactions higher than 1000 dollars.


---

# 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.skydeck.ai/genstudio-workspace/tools/sql-assistant/how-to-use.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.
