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 table1 ( id int, name varchar(64) ); INSERT INTO table1 VALUES (15, 'Ivan'); CREATE TABLE table2 ( id int, val INT ); INSERT INTO table2 VALUES (15, 100), (15, 200), (15, 300); SELECT * FROM table1 LEFT JOIN table2 ON table2.id = table1.id;

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

Copy Clear