Step 1: Pretty Format for Review
Run Pretty Format first to make clauses and conditions readable for peer review and debugging.
Tip: if a query is hard to reason about, formatting often reveals logical mistakes immediately.
Smart SQL Tools for Every Database
Advanced SQL Productivity Workspace
This dedicated page separates writing-quality workflows from diagnostics so you can clean SQL, detect risky patterns, and inspect changes in a focused environment.
Paste one query and use it across all productivity tools on this page.
Run Pretty Format first to make clauses and conditions readable for peer review and debugging.
Tip: if a query is hard to reason about, formatting often reveals logical mistakes immediately.
Run linting after formatting to detect high-impact risks like broad updates/deletes and weak filter patterns.
Tip: focus on Critical findings first, then optimize warnings.
Use token-level compare to inspect exactly what changed between original SQL and transformed output.
Tip: compare minified SQL only after correctness is confirmed on formatted SQL.
Run the complexity snapshot to flag query shapes that usually grow expensive at scale.
Tip: use this as triage, then validate with EXPLAIN plans in your target database.
Transform query style for readability or compact transport while preserving string-literal content.
Pretty Format: uppercases core SQL keywords and lays out clauses line-by-line.
Minify SQL: compresses whitespace outside quoted strings to reduce query length.
Use Output in Workspace: replaces workspace SQL with transformed output so downstream tools use the latest version.
Best practice: review formatted SQL first, then minify only for compact storage or transport.
Run Pretty Format or Minify SQL to transform the current workspace query.
Apply static lint rules with severity labels to catch risky SQL before execution.
Critical: high-risk actions such as UPDATE/DELETE without WHERE or unsafe JOIN structure.
Warning: performance and maintainability concerns like SELECT * and leading wildcard LIKE.
Info: style and determinism checks such as LIMIT without ORDER BY.
How to act: resolve Critical findings before execution; then optimize Warning items for long-term performance.
Run linting to see rule-based SQL safety and quality findings.
Compare workspace SQL with formatter/minifier output or your own target SQL using token-level diff.
Added tokens: symbols or clauses newly introduced by transformations.
Removed tokens: parts removed from original SQL, useful for spotting accidental logic changes.
Unchanged tokens: how much of original SQL remained intact.
Run Compare SQL after generating a formatted/minified output or adding custom target SQL.
Estimate execution risk from query shape before you run expensive workloads.
What it inspects: join count, subquery count, OR density, wildcard filters, function predicates, and grouping/sorting pressure.
Risk score: a heuristic score from 0 to 100 where higher means higher likely performance cost.
When to use: during query drafting, migration review, and before production rollout.
Run Analyze Complexity to view risk score and contributing factors.
Complexity factors and optimization suggestions will appear here.