如下,满意请采纳: select 机场名称,count(航班号) 总航班数,sum(case when 起飞状态='已起飞' then 1 else 0 end) 已起飞的航班数from tab1group by 机场名称