SQL Clause Execution Order
While SQL queries are written starting with SELECT, database engines execute clauses in this logical sequence: FROM / JOIN โ WHERE โ GROUP BY โ HAVING โ SELECT โ ORDER BY โ LIMIT.
Frequently Asked Questions
Which SQL dialects does this SQL Formatter support?
It works with standard ANSI SQL syntax including PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), and Snowflake queries.
Is my database schema or SQL query sent to a backend server?
No. SQL formatting and minification run 100% locally in your browser using JavaScript so your table names and queries remain private.