SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT aircrafts_data.aircraft_code, model from aircrafts_data LEFT JOIN seats ON aircrafts_data.aircraft_code = seats.aircraft_code AND fare_conditions = 'Business' GROUP BY aircrafts_data.aircraft_code HAVING COUNT(seats.aircraft_code) = 0; ORDER BY aircrafts_data.aircraft_code

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear