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 test (code char(10), data char(100), rank char(1), rate integer); Insert into test (code, data, rank, rate) values( 'first', 'it is first', 's', 10 ); Insert into test (code, data, rank, rate) values( 'second', 'it is second', 's', 3 ); Insert into test (code, data, rank, rate) values( 'third', 'it is third', 't', 7 ); Insert into test (code, data, rank, rate) values( 'forth', 'it is forth', 't', 2 ); Insert into test (code, data, rank, rate) values( 'fifth', 'it is fifth', 't', 1 ); select * from test; select z.* from( select rank, sum(rate) as summ, avg(rate) as average, min(rate) as minimum, max(rate) as maximum from test where rate > 3 group by rank ) as z where summ > 7; select rank, sum(rate) as summ, avg(rate) as average, min(rate) as minimum, max(rate) as maximum from test where rate > 3 group by rank having rank = 't'; drop table test;
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
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