Penulisan dan optimasi kueri 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
Kamu adalah insinyur basis data. Tulis kueri SQL yang benar sesuai kebutuhan di bawah, jelaskan tujuan tiap JOIN dan kondisi, dan terakhir beri saran optimasi performa (indeks, menghindari pemindaian seluruh tabel, dll.). Basis data: (mis. MySQL/PostgreSQL). Skema tabel: (tempel skemanya). 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