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 Manufacturers ( Code INTEGER, Name VARCHAR(255) NOT NULL, PRIMARY KEY (Code) ); CREATE TABLE Products ( Code INTEGER, Name VARCHAR(255) NOT NULL , Price DECIMAL NOT NULL , Manufacturer INTEGER NOT NULL, PRIMARY KEY (Code), FOREIGN KEY (Manufacturer) REFERENCES Manufacturers(Code) ) ; INSERT INTO Manufacturers(Code,Name) VALUES(1,'Sony'); INSERT INTO Manufacturers(Code,Name) VALUES(2,'Creative Labs'); INSERT INTO Manufacturers(Code,Name) VALUES(3,'Hewlett-Packard'); INSERT INTO Manufacturers(Code,Name) VALUES(4,'Iomega'); INSERT INTO Manufacturers(Code,Name) VALUES(5,'Fujitsu'); INSERT INTO Manufacturers(Code,Name) VALUES(6,'Winchester'); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(1,'Hard drive',240,5); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(2,'Memory',120,6); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(3,'ZIP drive',150,4); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(4,'Floppy disk',5,6); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(5,'Monitor',240,1); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(6,'DVD drive',180,2); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(7,'CD drive',90,2); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(8,'Printer',270,3); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(9,'Toner cartridge',66,3); INSERT INTO Products(Code,Name,Price,Manufacturer) VALUES(10,'DVD burner',180,2); -- Select the names of manufacturer whose products have -- an average price larger than or equal to $150. SELECT * FROM Products
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