store_day_sale表,有很多数据,mediid,strdate都相同时,把execoffice=270那一行的salenum修改成execoffice等269和等270的值之和。
---------------------
select * from store_day_sale x1 where execoffice=269 and MediId in
(select MediID from DictMedi where ChargeId = 5) and strdate between '20160101' and '20160131'
select * from store_day_sale x1 where execoffice=270 and MediId in
(select MediID from DictMedi where ChargeId = 5) and strdate between '20160101' and '20160131'
---------------------
select * from store_day_sale x1 where execoffice=269 and MediId in
(select MediID from DictMedi where ChargeId = 5) and strdate between '20160101' and '20160131'
select * from store_day_sale x1 where execoffice=270 and MediId in
(select MediID from DictMedi where ChargeId = 5) and strdate between '20160101' and '20160131'