Minify SQL
Convert multi line SQL to runnable inline SQL code
Introduction
This is an online minifier tool which helps to minify/compress SQL code.
How to use this tool?
You can input/paste your SQL code directly into the editor, then click the minify button to minify the code.
After minifying, you can download, save or share the result. It will create a short link for you to share with others. You can also sign-in using Google/GitHub to save minifyed result into your account.
What is SQL?
SQL is the standard language for dealing with Relational Databases. SQL can be used to insert, search, update, and delete database records. SQL can do lots of other operations, including optimizing and maintenance of databases.
SQL Syntax
SELECT employee.first_name,
employee.last_name,
call.start_time,
call.end_time,
call_outcome.outcome_text
FROM employee
INNER JOIN CALL ON call.employee_id = employee.id
INNER JOIN call_outcome ON call.call_outcome_id = call_outcome.id
ORDER BY call.start_time ASC;
Examples
Before minified
SELECT
first_name,
last_name,
employees.department_id,
departments.department_id,
department_name
FROM
employees
INNER JOIN
departments ON departments.department_id = employees.department_id
WHERE
employees.department_id IN (1 , 2, 3);
After minified
SELECT first_name, last_name, employees.department_id, departments.department_id, department_name FROM employees INNER JOIN departments ON departments.department_id=employees.department_id WHERE employees.department_id IN (1 , 2, 3);