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 count(*) as total_seats, count(bp.seat_no) as occupied_seats from flights f join seats s on f.aircraft_code = s.aircraft_code left join boarding_passes bp on s.seat_no = bp.seat_no and bp.flight_id = f.flight_id where f.flight_id = '30625' ; select * from query_cost('Select count(*) as total_seats, count(bp.seat_no) as occupied_seats from flights f join seats s on f.aircraft_code = s.aircraft_code left join boarding_passes bp on s.seat_no = bp.seat_no and bp.flight_id = f.flight_id where f.flight_id = ''30625''');

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

Copy Clear