The prompt
Write a SQL query for this: [WHAT I WANT]. My tables/columns are: [SCHEMA]. Use [dialect: PostgreSQL / MySQL]. Explain the query in one line, and mention if there's a more efficient way.

More prompts in this discipline

Collected from the Notion template. Want to share one of yours? Submit a prompt.