> For the complete documentation index, see [llms.txt](https://docs.skydeck.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skydeck.ai/da/genstudio-workspace/tools/sql-assistant.md).

# SQL Assistent

SQL Assistent er en innovativ SQL database LLM, der fungerer som din virtuelle databasekonsulent, der hjælper med forespørgselsoptimering, skema design og datastyringsopgaver. Uanset om du fejlfinder på ydeevneflaskehalse eller søger råd om relationelle designprincipper, giver SQL Assistent dig mulighed for at udnytte dit datas fulde potentiale gennem effektive databaseoperationer.

<figure><img src="/files/V2iz77s1mZ1HVzdfbzgH" alt="sql assistant 1"><figcaption></figcaption></figure>

## Hvilke typer spørgsmål kan SQL Assistant hjælpe med?

SQL Assistant kan hjælpe med en række SQL-relaterede spørgsmål, herunder, men ikke begrænset til:

* **Skrive SQL-forespørgsler** – Assistere med at skrive forskellige SQL-forespørgsler som SELECT, INSERT, UPDATE, DELETE, ALTER, CREATE, DROP osv.
* **Forklare SQL-koncepter** – Forklare forskellige SQL-koncepter, såsom joins, normalisering, indeksering, transaktioner, lagrede procedurer osv.
* **Fejlfinding af SQL-forespørgsler** – Hjælpe med at fejlfinde og give løsninger eller alternative metoder til forespørgsler, der ikke fungerer som forventet.
* **Optimere SQL-forespørgsler** – Foreslå måder at optimere dine SQL-forespørgsler for bedre ydeevne.
* **Datamodelering** – Assistere med at designe databaseskemaer og give råd om bedste praksis.
* **SQL til dataanalyse** – Skrive komplekse forespørgsler for at udføre dataanalysopgaver.
* **Databaseadministration** – Hjælpe med koncepter relateret til administration af databaser som sikkerhedskopier, replikering, partitionering osv.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.skydeck.ai/da/genstudio-workspace/tools/sql-assistant.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
