【正文】
arvalue),sum(dblyeardeprtotal) from fa_total where iperiod=1 select sum(dblyearvalue),sum(dblyeardeprtotal) from fa_total where iperiod=2 分析過程 分析是否存在不相等的數(shù)據(jù): select * from ( select * from fa_total where iperiod=1 ) aa inner join ( select * from fa_total where iperiod=2 ) bb on = and = where 分析過程 查詢結(jié)果是沒有: 分析過程 再分析數(shù)據(jù)差異在哪里: select sum(),sum() from ( select * from fa_total where iperiod=1 order by sdeptnum,stypenum ) aa left join ( select * from fa_total where iperiod=2 order by sdeptnum,stypenum ) bb on