Explain a SQL query

Understand what a query does.

chatgptgemini
Act as a SQL tutor. Explain the query below step by step in plain language: what each clause does, the join logic, and the final result it returns. Point out anything inefficient or risky, and suggest an improvement if there is one. Database: [db]. Query: [paste]

How to use this prompt

  1. Tap Copy prompt above.
  2. Replace the [bracketed] parts with your own details.
  3. Paste it into chatgpt, gemini.