SnipTray logo
Data

Explain this query

What it returns, and where it will hurt.

  • sql
  • performance
  • review

The prompt

Explain what this query returns, in one paragraph, to someone who knows the data
but not this query.

Then flag anything that will hurt at scale: a join that fans out, a function
wrapped around an indexed column, a subquery that runs per row. For each, say
what it costs and the smallest rewrite that avoids it.

If it is already fine, say so rather than suggesting a rewrite for its own sake.

{{query}}

What to fill in

{{query}}
The query — e.g. Paste the SQL

117 prompts, in the app you already paste from

The whole library, searchable, with your own prompts alongside it. Free to browse here; Pro to keep them a keystroke away on every device.