SELECT id, name, email FROM users LIMIT 10;
SELECT u.id,u.name,u.email,o.total FROM users u INNER JOIN orders o ON u.id=o.user_id WHERE u.status='active' AND o.total>100 ORDER BY o.order_date DESC LIMIT 20;✨ After Formatting:
SELECT
u.id,
u.name,
u.email,
o.total
FROM
users u
INNER JOIN
orders o
ON u.id = o.user_id
WHERE
u.status = 'active'
AND o.total > 100
ORDER BY
o.order_date DESC
LIMIT 20;
SQL Formatter is a powerful online tool that transforms messy, unreadable SQL queries into clean, well-structured, and properly indented code.