Get the SQL for what you're trying to ask the database.
Coding💾 0 savesby PromptChief Team
Write the SQL for what I describe.
WHAT I WANT: [[REQUEST]]
DATABASE TYPE: [[DB]]
TABLES & KEY COLUMNS: [[SCHEMA]]
Deliver:
1. The query, formatted and commented
2. A plain-English explanation of what each part does
3. Any assumption I should verify (table/column names, joins)
4. A note on performance if the data is large
5. An alternative if there's a simpler/safer way