码迷,mamicode.com
首页 > 数据库 > 详细

现整理CardBase出库与OwnerCard入库核对,请按以下步骤操作核对。

时间:2019-10-05 16:34:48      阅读:118      评论:0      收藏:0      [点我收藏+]

标签:set   port   数据   ati   with   select   lock   是否一致   ant   

现整理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,2
  
c.[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,2
  
e.核对两者是否一致,将核对结果发邮件。发送给我,术安,建国,峰哥。
 
辛苦。

现整理CardBase出库与OwnerCard入库核对,请按以下步骤操作核对。

标签:set   port   数据   ati   with   select   lock   是否一致   ant   

原文地址:https://www.cnblogs.com/ComputerVip/p/11624747.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!