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(seats_count2) as rows_count, sum(seats_count2) as seats_count from (select count(seat_num) as seats_count2 from (select left(seat_no,-1) as seat_num,substring(seat_no from '.$') as seat_char from seats where aircraft_code= (select aircraft_code from aircrafts_data where model->>'en'='Boeing 777-300')) sq group by seat_num) sq2

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

Copy Clear