> 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/ar/genstudio-workspace/tools/sql-assistant.md).

# مساعد SQL

مساعد SQL هو نموذج لغة مبتكر لقواعد بيانات SQL يعمل كمستشار قاعدة بيانات افتراضي، يساعد في تحسين الاستعلامات، وتصميم المخططات، ومهام إدارة البيانات. سواء كنت تحل مشكلات اختناق الأداء أو تبحث عن نصائح حول مبادئ التصميم العلاقي، يمكّنك مساعد SQL من استغلال الإمكانات الكاملة لبياناتك من خلال عمليات قاعدة بيانات فعالة.

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

## ما نوع الأسئلة التي يمكن لمساعد SQL مساعدتك بها؟

يمكن لمساعد SQL مساعدتك في مجموعة من الأسئلة المتعلقة بـ SQL بما في ذلك، ولكن لا تقتصر على:

* **كتابة استعلامات SQL** – المساعدة في كتابة استعلامات SQL متنوعة مثل SELECT و INSERT و UPDATE و DELETE و ALTER و CREATE و DROP وما إلى ذلك.
* **شرح مفاهيم SQL** – شرح مفاهيم SQL المختلفة، مثل الربط (joins) وتطبيع البيانات (normalization) والفهرسة (indexing) والمعاملات (transactions) والإجراءات المخزنة (stored procedures) وما إلى ذلك.
* **استكشاف أخطاء استعلامات SQL وإصلاحها** – المساعدة في تصحيح الأخطاء وتقديم الحلول أو البدائل للاستعلامات التي لا تعمل كما هو متوقع.
* **تحسين استعلامات SQL** – اقتراح طرق لتحسين استعلامات SQL الخاصة بك لأداء أفضل.
* **نمذجة البيانات** – المساعدة في تصميم مخططات قواعد البيانات وتقديم النصائح حول أفضل الممارسات.
* **SQL لتحليل البيانات** – كتابة استعلامات معقدة لأداء مهام تحليل البيانات.
* **إدارة قواعد البيانات** – المساعدة في المفاهيم المتعلقة بإدارة قواعد البيانات مثل النسخ الاحتياطي (backups) والتكرار (replication) والتقسيم (partitioning) وما إلى ذلك.


---

# 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/ar/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.
