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 DATABASE OnlineShopping; --USE OnlineShopping; CREATE TABLE tbl_ProductChopee( chopee_ID INT IDENTITY(1,1) PRIMARY KEY, chopee_Name VARCHAR(50), chopee_Price DECIMAL(12,4), chopee_Quantity INT, chopee_Sales DATE ); INSERT INTO tbl_ProductChopee(chopee_Name, chopee_Price, chopee_Quantity, chopee_Sales) VALUES ('Invisible Cloak', 999.99, 50, '2023-01-31'), ('Single-Use Infinite Battery', 49.99, 75, '2023-07-04'), ('Anti-Gravity Hat', 299.99, 30, '2023-08-10'), ('Self-Watering Watering Can', 14.99, 150, '2023-10-31'), ('Pet Rock', 9.99, 80, '2023-12-25'), ('Noise-Canceling Alarm Clock', 59.99, 25, '2024-01-01'), ('Instant Ice Cream Heater', 39.99, 40, '2024-04-01'), ('Portable Black Hole', 499.99, 10, '2024-05-12'); CREATE TABLE tbl_ProductLabada( labada_ID INT IDENTITY(1,1) PRIMARY KEY, labada_Name VARCHAR(50), labada_Price DECIMAL(12,4), labada_Quantity INT, labada_Sales DATE ); INSERT INTO tbl_ProductLabada(labada_Name, labada_Price, labada_Quantity, labada_Sales) VALUES ('Portable Black Hole', 499.99, 10, '2024-05-12'), ('Inflatable Dartboard', 34.99, 80, '2024-07-07'), ('Square Watermelon Molder', 9.99, 150, '2024-09-03'), ('Self-Charging Solar Flashlight', 29.99, 100, '2024-12-25'), ('Edible Cutlery Set', 19.99, 120, '2025-02-14'), ('Automatic Banana Peeler', 39.99, 50, '2025-04-01'), ('Voice-Controlled Silence Generator', 79.99, 30, '2025-10-31'), ('Pet Rock', 9.99, 80, '2023-12-25'); --[JOIN ON] SELECT chopee_Name, chopee_Price,labada_Name,labada_Price from tbl_ProductChopee JOIN tbl_ProductLabada on chopee_ID = labada_ID; --[OUTER JOIN -> LEFT JOIN] SELECT chopee_Name, chopee_Price,labada_Name,labada_Price from tbl_ProductChopee LEFT JOIN tbl_ProductLabada on chopee_ID = labada_ID; --{OUTER JOIN -> RIGHT JOIN] SELECT chopee_Name, chopee_Price,labada_Name,labada_Price from tbl_ProductChopee RIGHT JOIN tbl_ProductLabada on chopee_ID = labada_ID;
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