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