InTouch Hub · Blue Isle Software

SQL Query Explainer

Explain a SQL query in plain English and flag performance/correctness risks.

Provided free and as is, without warranty of any kind — including merchantability, fitness for a particular purpose, and the accuracy or completeness of any result. See the licence. You are responsible for checking what this produces before relying on it.

analyticscode-reviewdataindicatorit-supportkeyorderperformancereportsoftwaresqlsummary

SQL Query Explainer

Explain a SQL query in plain English and flag performance and correctness risks.

What it does

Loads as a prompt for the InTouch AI assistant and turns it into a senior database engineer. Given a SQL statement, it restates what the query does, walks the logic in execution order (FROM/JOIN → WHERE → GROUP BY → HAVING → windows → SELECT → ORDER BY → LIMIT), and then audits the query for two classes of problems:

Each finding is rated [HIGH] / [MEDIUM] / [LOW], and HIGH/MEDIUM findings come with a concrete fix (rewrite, index, or predicate change).

What to feed it

What it returns

A Markdown report with these sections: Summary, Plain-English Walkthrough, Correctness Risks, Performance Risks, an optional Suggested Rewrite, and Assumptions. When a category has no issues, it says so explicitly rather than inventing findings, and it never fabricates index names, row counts, or schema details.