航空公司预订系统哪个目的地一天有超过2个航班?

时间:2016-12-18 18:59:00

标签: sql inner-join

我想得到结果:

哪个目的地一天有超过1个航班从伊斯坦布尔出发?

我在列中有flightIDsdepartureairport(ISTANBUL)flightdates

SELECT reservation.flightID,departureairport,flightdate
FROM Flight INNER JOIN reservation ON reservation.FlightID = flight.FlightID
WHERE departureairport like "ISTANBUL"
GROUP BY departureairport,flightdate,reservation.flightID;

如何选择超过1次航班的日期?

0 个答案:

没有答案