SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select rtrim(seat_no, 'ABCDEFGHKJ')::int "row", json_agg(right(seat_no, 1) order by 1) seats , fare_conditions from seats join aircrafts_data using(aircraft_code) where aircraft_code = '773' group by rtrim(seat_no, 'ABCDEFGHKJ'), fare_conditions order by "row";

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear