Data & Analysis
Intermediate
🔥 Trending
SQL Query Writer & Optimizer
Generate complex SQL queries from plain English and optimize slow queries.
👁️ 31600 views
❤️ 2234 likes
📋 1987 copies
The Prompt Template
Write a [DATABASE_TYPE] SQL query for: [REQUIREMENT]. Tables available: [TABLE_SCHEMAS]. Requirements: [SPECIFIC_REQUIREMENTS]. Additionally: explain the query logic, identify any performance issues, suggest indexes that would help, and provide an alternative query if there is a more efficient approach. Format the SQL with proper indentation.
344 characters
Tags
Works Best With
ChatGPT Claude