A query written on one line
- Input
- select a.id, b.name from a join b on a.id = b.a_id where a.active = 1
- Output
- SELECT a.id, b.name FROM a JOIN b ON a.id = b.a_id WHERE a.active = 1
Each clause moves to its own line and the join condition is indented under it, so the query's shape becomes visible at a glance.