← Back to Prompt Library
Code

SQL Query Builder

Generate SQL from plain English descriptions.

Write a SQL query that [DESCRIPTION IN PLAIN ENGLISH]. Database: [MySQL/PostgreSQL/SQLite/etc]. Relevant tables and columns: [DESCRIBE TABLE STRUCTURE] Explain each part of the query. If there are multiple ways to write this, show the most performant approach and explain why. Include any indexes that would improve performance.
SQLdatabasequery

Want to use this with one click inside ChatGPT?

Get TresPrompt →

Using AI? Optimize your prompts first.

Better prompts = better output = fewer revisions.

Try the Prompt Optimizer — Free →

100% client-side where applicable — your files and inputs stay in your browser. Nothing is uploaded to HundredTabs servers for these tools.