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 table users ( id bigint primary key, name varchar not null ); insert into users values (1, 'john'), (2, 'Liza'), (7, 'Odin'), (11, 'donatello'), (17, 'spider-man'), (19, 'Elen'), (20, 'Liza'); create table orders ( id bigint primary key, user_id bigint not null, product varchar not null -- constraint fk_orders_user_id foreign key (user_id) references users (id) ); insert into orders values (101, 17, 'pizza'), (107, 2, 'toothpaste'), (108, 19, 'candies'), (109, 20, 'pizza'), (200, 17, 'shampoo'), (205, 2, 'pizza'), (210, 19, 'toothpaste'), (220, 19, 'pizza'), (221, 11, 'shampoo'), (222, 19, 'pizza'), (900, 100, 'pizza'), (901, 200, 'pizza') ; SELECT u.id, u.name FROM (SELECT DISTINCT user_id FROM orders) o LEFT JOIN users u ON u.id = o.user_id ORDER BY LOWER(u.name) ASC, u.id ASC;
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