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 count(c1) rows_count, sum(c2) seats_count from (select rtrim(seat_no,'ABCDEFGHIJKLMNO')::integer as c1, count(seat_no) c2 from seats where aircraft_code='773' group by rtrim(seat_no,'ABCDEFGHIJKLMNO')) as t1

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

Copy Clear