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 Subscribers ( user_id int, subscriber_id int ); INSERT INTO Subscribers VALUES (0, 1), (1, 0), (2, 0), (2, 1); SELECT * FROM Subscribers; SELECT user_id, COUNT(subscriber_id) AS subsriber_count From Subscribers group by user_id;

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

Copy Clear