Tulis kueri basis data (SQL)
A ready-to-use “Pemrograman” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Tulis SQL: 1) kueri sesuai kebutuhan yang aku jelaskan; 2) penjelasan bagian per bagian apa yang dilakukannya; 3) tunjukkan kemungkinan masalah performa (indeks hilang, pemindaian seluruh tabel) dan perbaikannya; 4) ingatkan aku kasus tepi (NULL, duplikat, zona waktu). Skema tabel: "jelaskan tabel dan kolomnya" Apa yang ingin aku kueri: "jelaskan kebutuhannya"
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT 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: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant