← DevForge
SQL
Formatter
Free
SQL Input
Clear
SELECT
INSERT
Indent:
2 spaces
4 spaces
1 tab
Uppercase keywords
select u.id, u.name, count(o.id) as order_count from users u left join orders o on u.id = o.user_id where u.active = true group by u.id, u.name having count(o.id) > 0 order by order_count desc limit 10;
Formatted SQL
Copy
Format