More in this categoryCoding Prompts
06 / 12
Coding prompt
SQL Query Builder
Optimized, index-friendly SQL for real reporting needs.
Published · Updated

SQL builder prompt
Write an optimized SQL query for [DATABASE, e.g. PostgreSQL] that [DESCRIBE NEED, e.g. finds top 10 customers by revenue last quarter with their order counts]. Use proper JOINs, index-friendly WHERE clauses, and add a brief comment explaining the query plan.
Related prompts
Coding Prompts2 phasesLegacy Code Modernization
Analyze legacy risks, then modernize safely.
- Amazon Q Developer
By Rahul Verma
Coding Prompts2 phasesFunction Draft to Production-Ready
Draft a working function, then harden it for production.
- GitHub Copilot
By Priya Sharma
Coding Prompts
Coding Prompts2 phases