【正文】
www . ufsoft . com 現(xiàn)象 二月份的數(shù)據(jù)為: ,相差: www . ufsoft . com 分析過程 先分析界面看到的數(shù)據(jù)和數(shù)據(jù)庫中的是否一致:可以看到數(shù)據(jù)是一致的 www . ufsoft . com 分析過程 使用的語句: select sum(dblyearvalue),sum(dblyeardeprtotal) from fa_total where iperiod=1 select sum(dblyearvalue),sum(dblyeardeprtotal) from fa_total where iperiod=2 www . ufsoft . com 分析過程 分析是否存在不相等的數(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 www . ufsoft . com 分析過程 查詢結(jié)果是沒有: www . ufsoft . com 分析過程 再分析數(shù)據(jù)差異在哪里: select sum(),sum() from ( select * from fa_total where iperiod=1