NeLocker
☰
Library
Free Prompts
Pricing
Supporters
Our Stance
💡
Want a prompt that isn't here?
Tell us — we build the vault around you.
Suggest a prompt
×
← NeLocker vault
SQL Query Builder & Explainer
Writes and explains SQL from a plain-English ask.
Universal
Claude
ChatGPT
Gemini
Grok
💡 The original prompt — works in any model. Start here, then tune per model.
Fill in the blanks — your answers carry across every model
Engine
Schema
Goal
Help me with a SQL query. Database engine: {ENGINE} (Postgres / MySQL / SQLite / SQL Server) The tables + key columns: <schema> {SCHEMA} </schema> What I want to get: {GOAL} Give me: 1. The query, formatted and commented. 2. A plain-English explanation of how it works, step by step. 3. Any index or performance note for large data. 4. An edge case to watch (nulls, duplicates, timezones). Use the exact table/column names I gave. If the ask is ambiguous, state your assumption.
📋 Copy
↩ Reset
fill the blanks above ↑
💬
Subscribe
to read & share member tweaks for this prompt.