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

SQLize Online / PHPize Online  /  SQLtest Online

A A A
Login    Share code      Blog   FAQ

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

Copy Format Clear
create table tickets ( fr_id int, user_id int ); insert into tickets values (1, 60), (2, 50), (3, 4), (4, 60), (5, 60), (6, 60), (7, 4), (8, 60), (9, 50), (10, 50); select sum(user_id = 60) / count(*) as chance from tickets;

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

Copy Clear