MySQL
SQL queries, joins, subqueries, functions, DDL/DML, transactions & more
99 simulators found.
SELECT All Columns
SELECT All Columns — interactive SQL visualizer on sample tables with step-by-step explanation.
SELECT Specific Columns
SELECT Specific Columns — interactive SQL visualizer on sample tables with step-by-step explanation.
Column Aliases (AS)
Column Aliases (AS) — interactive SQL visualizer on sample tables with step-by-step explanation.
DISTINCT
DISTINCT — interactive SQL visualizer on sample tables with step-by-step explanation.
WHERE Filter
WHERE Filter — interactive SQL visualizer on sample tables with step-by-step explanation.
ORDER BY
ORDER BY — interactive SQL visualizer on sample tables with step-by-step explanation.
LIMIT
LIMIT — interactive SQL visualizer on sample tables with step-by-step explanation.
LIMIT with OFFSET
LIMIT with OFFSET — interactive SQL visualizer on sample tables with step-by-step explanation.
Computed Columns
Computed Columns — interactive SQL visualizer on sample tables with step-by-step explanation.
CONCAT Strings
CONCAT Strings — interactive SQL visualizer on sample tables with step-by-step explanation.
AND Operator
AND Operator — interactive SQL visualizer on sample tables with step-by-step explanation.
OR Operator
OR Operator — interactive SQL visualizer on sample tables with step-by-step explanation.
NOT Operator
NOT Operator — interactive SQL visualizer on sample tables with step-by-step explanation.
BETWEEN
BETWEEN — interactive SQL visualizer on sample tables with step-by-step explanation.
IN List
IN List — interactive SQL visualizer on sample tables with step-by-step explanation.
NOT IN
NOT IN — interactive SQL visualizer on sample tables with step-by-step explanation.
LIKE with %
LIKE with % — interactive SQL visualizer on sample tables with step-by-step explanation.
LIKE with _
LIKE with _ — interactive SQL visualizer on sample tables with step-by-step explanation.
IS NULL
IS NULL — interactive SQL visualizer on sample tables with step-by-step explanation.
IS NOT NULL
IS NOT NULL — interactive SQL visualizer on sample tables with step-by-step explanation.
Comparison Operators
Comparison Operators — interactive SQL visualizer on sample tables with step-by-step explanation.
Grouping Conditions
Grouping Conditions — interactive SQL visualizer on sample tables with step-by-step explanation.
COUNT(*)
COUNT(*) — interactive SQL visualizer on sample tables with step-by-step explanation.
SUM
SUM — interactive SQL visualizer on sample tables with step-by-step explanation.
AVG
AVG — interactive SQL visualizer on sample tables with step-by-step explanation.
MIN
MIN — interactive SQL visualizer on sample tables with step-by-step explanation.
MAX
MAX — interactive SQL visualizer on sample tables with step-by-step explanation.
GROUP BY
GROUP BY — interactive SQL visualizer on sample tables with step-by-step explanation.
GROUP BY Multiple Columns
GROUP BY Multiple Columns — interactive SQL visualizer on sample tables with step-by-step explanation.
HAVING
HAVING — interactive SQL visualizer on sample tables with step-by-step explanation.
GROUP_CONCAT
GROUP_CONCAT — interactive SQL visualizer on sample tables with step-by-step explanation.
COUNT DISTINCT
COUNT DISTINCT — interactive SQL visualizer on sample tables with step-by-step explanation.
INNER JOIN
INNER JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
LEFT JOIN
LEFT JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
RIGHT JOIN
RIGHT JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
FULL OUTER JOIN
FULL OUTER JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
CROSS JOIN
CROSS JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
SELF JOIN
SELF JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
JOIN with WHERE
JOIN with WHERE — interactive SQL visualizer on sample tables with step-by-step explanation.
Join Three Tables
Join Three Tables — interactive SQL visualizer on sample tables with step-by-step explanation.
NATURAL JOIN
NATURAL JOIN — interactive SQL visualizer on sample tables with step-by-step explanation.
JOIN vs Subquery
JOIN vs Subquery — interactive SQL visualizer on sample tables with step-by-step explanation.
Subquery in WHERE
Subquery in WHERE — interactive SQL visualizer on sample tables with step-by-step explanation.
Subquery with IN
Subquery with IN — interactive SQL visualizer on sample tables with step-by-step explanation.
Correlated Subquery
Correlated Subquery — interactive SQL visualizer on sample tables with step-by-step explanation.
Derived Table (Subquery in FROM)
Derived Table (Subquery in FROM) — interactive SQL visualizer on sample tables with step-by-step explanation.
EXISTS
EXISTS — interactive SQL visualizer on sample tables with step-by-step explanation.
NOT EXISTS
NOT EXISTS — interactive SQL visualizer on sample tables with step-by-step explanation.
ANY / SOME
ANY / SOME — interactive SQL visualizer on sample tables with step-by-step explanation.
ALL
ALL — interactive SQL visualizer on sample tables with step-by-step explanation.
UNION
UNION — interactive SQL visualizer on sample tables with step-by-step explanation.
UNION ALL
UNION ALL — interactive SQL visualizer on sample tables with step-by-step explanation.
INTERSECT
INTERSECT — interactive SQL visualizer on sample tables with step-by-step explanation.
EXCEPT / MINUS
EXCEPT / MINUS — interactive SQL visualizer on sample tables with step-by-step explanation.
UPPER and LOWER
UPPER and LOWER — interactive SQL visualizer on sample tables with step-by-step explanation.
LENGTH / CHAR_LENGTH
LENGTH / CHAR_LENGTH — interactive SQL visualizer on sample tables with step-by-step explanation.
SUBSTRING
SUBSTRING — interactive SQL visualizer on sample tables with step-by-step explanation.
CONCAT_WS
CONCAT_WS — interactive SQL visualizer on sample tables with step-by-step explanation.
REPLACE
REPLACE — interactive SQL visualizer on sample tables with step-by-step explanation.
TRIM
TRIM — interactive SQL visualizer on sample tables with step-by-step explanation.
LEFT and RIGHT
LEFT and RIGHT — interactive SQL visualizer on sample tables with step-by-step explanation.
LOCATE / INSTR
LOCATE / INSTR — interactive SQL visualizer on sample tables with step-by-step explanation.
ROUND
ROUND — interactive SQL visualizer on sample tables with step-by-step explanation.
CEIL and FLOOR
CEIL and FLOOR — interactive SQL visualizer on sample tables with step-by-step explanation.
MOD
MOD — interactive SQL visualizer on sample tables with step-by-step explanation.
ABS and POWER
ABS and POWER — interactive SQL visualizer on sample tables with step-by-step explanation.
NOW and CURDATE
NOW and CURDATE — interactive SQL visualizer on sample tables with step-by-step explanation.
DATEDIFF
DATEDIFF — interactive SQL visualizer on sample tables with step-by-step explanation.
DATE_FORMAT
DATE_FORMAT — interactive SQL visualizer on sample tables with step-by-step explanation.
YEAR MONTH DAY
YEAR MONTH DAY — interactive SQL visualizer on sample tables with step-by-step explanation.
CASE WHEN
CASE WHEN — interactive SQL visualizer on sample tables with step-by-step explanation.
IF Function
IF Function — interactive SQL visualizer on sample tables with step-by-step explanation.
IFNULL / COALESCE
IFNULL / COALESCE — interactive SQL visualizer on sample tables with step-by-step explanation.
NULLIF
NULLIF — interactive SQL visualizer on sample tables with step-by-step explanation.
INSERT Row
INSERT Row — interactive SQL visualizer on sample tables with step-by-step explanation.
INSERT Multiple Rows
INSERT Multiple Rows — interactive SQL visualizer on sample tables with step-by-step explanation.
UPDATE Rows
UPDATE Rows — interactive SQL visualizer on sample tables with step-by-step explanation.
UPDATE Single Row
UPDATE Single Row — interactive SQL visualizer on sample tables with step-by-step explanation.
DELETE Rows
DELETE Rows — interactive SQL visualizer on sample tables with step-by-step explanation.
INSERT ON DUPLICATE (Upsert)
INSERT ON DUPLICATE (Upsert) — interactive SQL visualizer on sample tables with step-by-step explanation.
CREATE TABLE
CREATE TABLE — interactive SQL visualizer on sample tables with step-by-step explanation.
MySQL Data Types
MySQL Data Types — interactive SQL visualizer on sample tables with step-by-step explanation.
ALTER TABLE ADD Column
ALTER TABLE ADD Column — interactive SQL visualizer on sample tables with step-by-step explanation.
ALTER TABLE MODIFY/DROP
ALTER TABLE MODIFY/DROP — interactive SQL visualizer on sample tables with step-by-step explanation.
DROP TABLE
DROP TABLE — interactive SQL visualizer on sample tables with step-by-step explanation.
TRUNCATE
TRUNCATE — interactive SQL visualizer on sample tables with step-by-step explanation.
CREATE DATABASE
CREATE DATABASE — interactive SQL visualizer on sample tables with step-by-step explanation.
RENAME TABLE
RENAME TABLE — interactive SQL visualizer on sample tables with step-by-step explanation.
PRIMARY KEY
PRIMARY KEY — interactive SQL visualizer on sample tables with step-by-step explanation.
FOREIGN KEY
FOREIGN KEY — interactive SQL visualizer on sample tables with step-by-step explanation.
UNIQUE Constraint
UNIQUE Constraint — interactive SQL visualizer on sample tables with step-by-step explanation.
NOT NULL Constraint
NOT NULL Constraint — interactive SQL visualizer on sample tables with step-by-step explanation.
DEFAULT Value
DEFAULT Value — interactive SQL visualizer on sample tables with step-by-step explanation.
AUTO_INCREMENT and CHECK
AUTO_INCREMENT and CHECK — interactive SQL visualizer on sample tables with step-by-step explanation.
INDEX
INDEX — interactive SQL visualizer on sample tables with step-by-step explanation.
VIEW
VIEW — interactive SQL visualizer on sample tables with step-by-step explanation.
Transactions (COMMIT/ROLLBACK)
Transactions (COMMIT/ROLLBACK) — interactive SQL visualizer on sample tables with step-by-step explanation.
Normalization (1NF-3NF)
Normalization (1NF-3NF) — interactive SQL visualizer on sample tables with step-by-step explanation.
Window Functions (RANK)
Window Functions (RANK) — interactive SQL visualizer on sample tables with step-by-step explanation.