SQL Formatter
Lowercase
Indent:
Beautify SQL statements, supports custom indentation and keyword case
0 字符
0 字符
Paste SQL statement here...
SELECT u.id, u.name, u.email, COUNT(o.id) as order_count FROM users u LEFT JOIN orders o ON u.id = o.user_id WHERE u.status = 'active' GROUP BY u.id, u.name, u.email ORDER BY order_count DESC LIMIT 10