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 json_agg(seat ORDER BY seat) AS seats, fare_conditions FROM seats WHERE aircraft_id IN ( SELECT id FROM aircrafts_data WHERE aircraft_model = 'Boeing 777-300' ) GROUP BY row, fare_conditions ORDER BY row;

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

Copy Clear