现整理CardBase出库与OwnerCard入库核对,请按以下步骤操作核对。 a.[CardBase出库]登录172.16.23.192 CardBase数据库 用户名cardbase_reader 密码向张术安口头要 b.执行,红字时间替换,为核对日:
select cardflag ,cardmoney, count(*) from cardbase with( nolock) where state =1 and UseTime between ‘2015-8-16‘ and ‘2015-8-17‘ and cardflag in (‘chinaszx‘, ‘chinaunicom‘,‘chinatelecom‘ ,‘chinaszx_yxgh‘, ‘chinaunicom_yxgh‘,‘chinatelecom_yxgh‘ ) group by cardflag, cardmoney order by 1,2c.[OwnerCard入库]登录Do_Center d.执行,红字时间替换,为核对日,与上一日期相同
select cardflag ,cardmoney, count(*) from Owner_card with( nolock) where CreateTime between ‘2015-8-16‘ and ‘2015-8-17‘ and cardflag in (‘chinaszx‘, ‘chinaunicom‘,‘chinatelecom‘ ,‘chinaszx_yxgh‘, ‘chinaunicom_yxgh‘,‘chinatelecom_yxgh‘ ) group by cardflag, cardmoney order by 1,2e.核对两者是否一致,将核对结果发邮件。发送给我,术安,建国,峰哥。 辛苦。