SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT SUBSTR(seat_no, 1, POSITION(' ' IN seat_no) - 1) AS row, json_agg(seat_no ORDER BY seat_no) AS seats, fare_conditions FROM seats WHERE aircraft_code = 'B773' GROUP BY row, fare_conditions ORDER BY row, fare_conditions; ; select * from query_cost('SELECT SUBSTR(seat_no, 1, POSITION('' '' IN seat_no) - 1) AS row, json_agg(seat_no ORDER BY seat_no) AS seats, fare_conditions FROM seats WHERE aircraft_code = ''B773'' GROUP BY row, fare_conditions ORDER BY row, fare_conditions;');

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear