SQLize
Online
/
PHPize Online
/
SQLtest Online
A
A
A
Share
Donate
Blog
Popular
Donate
A
A
A
Share
Blog
Popular
SQLize.online is a free online SQL environment for quickly running, experimenting with and sharing code.
You can run your SQL code on top of the most popular RDBMS including MySQL, MariaDB, SQLite, PostgreSQL, Oracle and Microsoft SQL Server.
SQL code:
Upload
Copy
Format
Clear
-- create CREATE TABLE USERS ( user_id int, name varchar(15), email varchar(50) ); -- insert INSERT INTO USERS(user_id,name,email) VALUES (1, 'Ivan', 'join@example.com'); INSERT INTO USERS(user_id,name,email) VALUES (2, 'Mary', 'mary@example.com'); INSERT INTO USERS(user_id,name,email) VALUES (3, 'Step', 'step@example.com'); INSERT INTO USERS(user_id,name,email) VALUES (4, 'Ann', 'ann@example.com'); -- create CREATE TABLE ORDERS ( order_id int, user_id int, order_data int ); -- insert INSERT INTO ORDERS(order_id,user_id,order_data) VALUES (1, 1, 12); INSERT INTO ORDERS(order_id,user_id,order_data) VALUES (2, 3, 13); INSERT INTO ORDERS(order_id,user_id,order_data) VALUES (3, 2, 14); INSERT INTO ORDERS(order_id,user_id,order_data) VALUES (4, 1, 15); -- create CREATE TABLE ORDER_ITEMS ( item_id int, order_id int, product_name varchar(15), quantity int, price int ); -- insert INSERT INTO ORDER_ITEMS(item_id,order_id,product_name,quantity,price) VALUES (1, 1, 'Artishok', 2, 1000); INSERT INTO ORDER_ITEMS(item_id,order_id,product_name,quantity,price) VALUES (2, 1, 'Kruassan', 1, 200); INSERT INTO ORDER_ITEMS(item_id,order_id,product_name,quantity,price) VALUES (3, 2, 'Artishok', 3, 10); INSERT INTO ORDER_ITEMS(item_id,order_id,product_name,quantity,price) VALUES (4, 3, 'Mongostin', 1, 300); INSERT INTO ORDER_ITEMS(item_id,order_id,product_name,quantity,price) VALUES (5, 4, 'Kruassan', 2, 200); -- fetch SELECT USERS.name FROM USERS JOIN ORDERS ON USERS.user_id = ORDERS.user_id GROUP BY USERS.user_id ORDER BY COUNT(ORDERS.*) DESC LIMIT 1;
SQL
Server:
MariaDB 11.4
MariaDB 11.5
MariaDB 10
MariaDB 10 Sakila (ReadOnly)
MySQL 5.7
MySQL 5.7 Sakila (ReadOnly)
MySQL 8.0
MySQL 8.0 Sakila (ReadOnly)
SQLite 3
SQLite 3 Preloaded
PostgreSQL 10 Bookings (ReadOnly)
PostgreSQL 11
PostgreSQL 12
PostgreSQL 13
PostgreSQL 14
PostgreSQL 15
MS SQL Server 2017
MS SQL Server 2019
MS SQL Server 2022
MS SQL Server 2022 AdventureWorks (ReadOnly)
Firebird 4.0
Firebird 4.0 (Employee)
Oracle Database 19c (HR)
Oracle Database 21c
Oracle Database 23c Free
SOQOL
Version
ER Diagram
Preserve result
Stuck with a problem?
Got Error?
Ask ChatGPT!
Result:
Copy
Clear