P
Prav
Hi, how do it translate this data
ID-----NAME-----COUNT-----LOC
10-----PETE-----300----------NORTH
10-----PETE-----20-----------EAST
10-----PETE-----5------------WEST
15-----JACK-----20----------EAST
15-----JACK-----10----------SOUTH
into this format
ID-----NAME-----TOTAL_COUNT-----COUNT_LOC1-----LOC1-----COUNT_LOC2-----LOC2----COUNT_LOC3-----LOC
10-----PETE-----325----------------------300---------------NORTH----20-----------------EAST-------5-----------------WES
15-----JACK-----30-----------------------20-----------------EAST------10----------------SOUTH------0-----------------na
-
Cheers
ID-----NAME-----COUNT-----LOC
10-----PETE-----300----------NORTH
10-----PETE-----20-----------EAST
10-----PETE-----5------------WEST
15-----JACK-----20----------EAST
15-----JACK-----10----------SOUTH
into this format
ID-----NAME-----TOTAL_COUNT-----COUNT_LOC1-----LOC1-----COUNT_LOC2-----LOC2----COUNT_LOC3-----LOC
10-----PETE-----325----------------------300---------------NORTH----20-----------------EAST-------5-----------------WES
15-----JACK-----30-----------------------20-----------------EAST------10----------------SOUTH------0-----------------na
-
Cheers