select 年份, MAX( CASE WHEN `季度`='第一季度' THEN BUG数 END ) as 第一季度BUG数, MAX( CASE WHEN `季度`='第二季度' THEN BUG数 END ) as 第二季度BUG数 from A GROUP BY `年份`