SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT a.aircraft_code, a.model->>'ru' AS aircraft_model, MAX(s.seat_no), s.class FROM aircrafts_data a JOIN seats s ON a.aircraft_code = s.aircraft_code WHERE s.class in ('Business', 'Comfort') ORDER BY s.class DESC, a.model->>'ru' DESC, s.seat_count ASC; ; select * from query_cost('SELECT a.aircraft_code, a.model->>''ru'' AS aircraft_model, MAX(s.seat_no), s.class FROM aircrafts_data a JOIN seats s ON a.aircraft_code = s.aircraft_code WHERE s.class in (''Business'', ''Comfort'') ORDER BY s.class DESC, a.model->>''ru'' DESC, s.seat_count ASC;');

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear