Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
CREATE TABLE Product ( maker varchar(64), model varchar(64) ); INSERT INTO Product (maker, model) VALUES ('Epson', 'P_1'), ('Epson', 'C_1'); CREATE TABLE Printer ( model varchar(64) ); INSERT INTO Printer (model) VALUES ('P_1'); SELECT DISTINCT maker FROM Product NATURAL JOIN Printer;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear