SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select trim( both '123456789' from s.seat_no), count(distinct(trim( both '123456789' from s.seat_no))) as rows_count, count(s.*) as seats_count from seats s inner join aircrafts_data a on a.aircraft_code = s.aircraft_code and a.model->>'en' = 'Boeing 777-300' group by s.seat_no

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear