How to compare two SQL queries
Format both queries the same way first, then compare them to see which clauses, columns or conditions changed.
2 min read
NOTHING UPLOADED · RUNS LOCALLY · FREE TO USE
About SQL comparison
Two SQL statements can be identical except for keyword case or line breaks. Format both sides to the same layout, and turn on Ignore case to focus on the clauses that actually differ.
Format puts each clause on its own line with upper-case keywords, so differences line up.
SELECT and select are the same keyword. Ignore case hides that noise (identifiers are folded too).
Compare an old and a new schema script to see added columns and changed constraints.
SQL guides
Format both queries the same way first, then compare them to see which clauses, columns or conditions changed.
2 min read
Features
Two editors scroll together so the line you are reading always faces its counterpart.
Ember marks edits and removals. Ink marks additions. No other colours to learn.
Step forward and back through each change with a count of how many remain.
Switch off whitespace and letter-case differences to focus on what really matters.
A line-by-line list says what happened to each line, such as “Friday” became “Monday” or a number went from 3 to 4. Click any entry to jump straight to it.
How it works
Drop the original on the left and the new version on the right.
Differences are highlighted as you type, line by line.
Review the summary, swap sides or clear the editors and go again.