【正文】
otal) 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 = and = where is null 分析過程 可以看到數(shù)據(jù)差異為: = 分析過程 查找差異的紀(jì)錄: select aa.* from ( select * f