Hi,
We have a customer group with some customer under it with different product. Need to update a value for below scenario.
C1,C2 and C3 are from same customer group. Always qty<>cal_qty for C2 and C3 in daily data. If in daily data we find C1 then the "cal_qty" should be equal to "qty" for C2 and C3. If C1 is not there in the daily data then no need to do any update anything
Before Update if C1 is there: After Update if C1 is there:
Customer id Product date qty cal_qty Customer id Product date qty cal_qty
C1 P1 2013-11-01 10 10 C1 P1 2013-11-01 10 10
C2 P2 2013-11-01 20 ? C2 P2 2013-11-01 20 20
C3 P1 2013-11-01 30 ? C3 P1 2013-11-01 30 30
C2 P1 2013-11-02 40 ? C2 P1 2013-11-02 40 40
C3 P1 2013-11-03 50 ? C3 P1 2013-11-03 50 50
Before Update if C1 is not there: After Update if C1 is not there: no change in daily data
Customer id Product date qty cal_qty Customer id Product date qty cal_qty
C2 P2 2013-11-01 20 ? C2 P2 2013-11-01 20 ?
C3 P1 2013-11-01 30 ? C3 P1 2013-11-01 30 ?
C2 P1 2013-11-02 40 ? C2 P1 2013-11-02 40 ?
C3 P1 2013-11-03 50 ? C3 P1 2013-11-03 50 ?
Tags:
Forums: