SQL Formatter
Format or minify SQL for any dialect
Dialect:
mysql
postgresql
sqlite
tsql
format
minify
SQL
127 chars
Output
Copy SQL
SELECT u.id, u.name, o.total FROM users u INNER JOIN orders o ON u.id=o.user_id WHERE u.active=1 ORDER BY o.total DESC LIMIT 10
SELECT u.id, u.name, o.total FROM users u INNER JOIN orders o ON u.id = o.user_id WHERE u.active = 1 ORDER BY o.total DESC LIMIT 10