โ Developer
๐๏ธ SQL Formatter
Format and beautify SQL queries.
SQL
select u.id, u.name, count(o.id) as orders from users u left join orders o on o.user_id = u.id where u.created_at > '2024-01-01' and u.status in ('active','trial') group by u.id, u.name having count(o.id) > 2 order by orders desc limit 10;
Dialect
Standard SQL
PostgreSQL
MySQL
MariaDB
SQLite
SQL Server (T-SQL)
Oracle PL/SQL
BigQuery
Snowflake
Redshift
Spark
Hive
Trino / Presto
DB2
ClickHouse
DuckDB
Keywords
UPPERCASE
lowercase
As written
Indent
2 spaces
4 spaces
Tab
Copy