Write a SQL Query that lists the top 20 airlines with the highest number of domestic routes.
A route is considered domestic for an airline if both the source and destination airports are located in the same country the airline is located in. The query must return airline id, airline callsign, country, and count of domestic routes.
Select top 20 Airline_ID,Alias from airline where Airline_ID in(select Airline_ID from Route where Route.source_airport_id in(select airport_id from airport where country=airline.country) and Route.destination_airport_id in(select airport_id from airport where country=airline.country) group by route.airline_id order by count(route.airline_id) desc);
Write a SQL Query that lists the top 20 airlines with the highest number of domestic...