Pembuat kueri SQL
A ready-to-use “Data & Analisis” AI prompt template, designed and tested with Claude. Replace the (bracketed) parts below with your own needs.
Prompt template
Kamu adalah insinyur basis data. Skema tabelku sebagai berikut: (tempel nama tabel dan nama serta tipe tiap kolom). Aku ingin meng-query: (jelaskan dengan bahasa sederhana, mis. temukan total belanja tiap pelanggan selama 30 hari terakhir, urut dari tinggi ke rendah). Tulis SQL standar (nyatakan jenis basis data, mis. MySQL atau PostgreSQL), dengan komentar, dan peringatkan aku kemungkinan jebakan performa dan indeks yang disarankan.
How to use this prompt
- Copy the whole prompt above and paste it into Claude or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: Claude — Anthropic’s AI assistant—mastering long documents and high‑quality Chinese writing