Tool
Boxy
Free Online Tools
EN
JA
KO
Tools
/
π»
Developer
/
Sql Formatter
π»
Sql Formatter
NEW
sql Β· format Β· query Β· database Β· beautify
SQL Input
select u.name, count(o.id) as cnt from users u left join orders o on u.id=o.user_id where u.active=1 and o.total>100 group by u.id order by cnt desc limit 10
Formatted
SELECT u.name, count(o.id) as cnt FROM users u LEFT JOIN orders o on u.id=o.user_id WHERE u.active=1 and o.total>100 GROUP BY u.id ORDER BY cnt desc LIMIT 10
Copy