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
-- select trim(leading '+' from '+2220E+1') AS t /* select department_id, sum(salary) salary from employees group by department_id order by salary desc */ with sum_salary as ( select department_id, sum(salary) salary from employees group by department_id ) select department_id from sum_salary a where a.salary = ( select max(salary) from sum_salary )

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

Copy Clear