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 employees (id serial, name text, salary int); insert into employees (name, salary) values ('John', 5500), ('Kate', 7200), ('Roy', 3900), ('Bill', 7200); select * from employees where salary = (select max(salary) from employees); select * from employees order by salary desc fetch first 1 rows with ties;

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

Copy Clear