【正文】
= where ( ) and =6 分析過程 再分析: select , from ( select * from fa_total where iperiod=1 ) aa inner join ( select * from fa_total where iperiod=6 ) bb on = and = where 分析過程 只剩下一條記錄不相等: 分析過程 可以分析一下卡片數(shù)據(jù): select * from fa_cards where sdeptnum=39。0110539。 and stypenum=39。01030139。 and dinputdate39。20230531‘ 分析過程 可以看到, : 解決方法 分析后可以發(fā)現(xiàn): 由于 6月份以后系統(tǒng)增加了原始卡片,也會造成年初數(shù)據(jù)的變化: 其他月份也存在此問題: 解決方法 綜合以上分析: 數(shù)據(jù)錯誤原因: 1。缺少部分?jǐn)?shù)據(jù):需要到庫中增加 2。更改后還有部分?jǐn)?shù)據(jù)時錯誤的:需要改正 3。年中錄入原始卡片,造成數(shù)據(jù)不一致是正常的 結(jié)束