how to transform the given input to output format
Posted: Mon Jun 16, 2008 4:21 am
hi, can any one give me some idea how to get the below output.
Input
Name,Sal,Month
Hari,2000,Jan
Hari,1000,March
Gokul,3000,Jan
Ganesh,4000,Feb
Jagadish,5000,Jan
Jagadish,6000,Feb
Output
Name, Jan , Feb, March
Hari, 2000, 0 , 1000
Gokul, 3000, 0 , 0
Ganesh , 0 ,4000, 0
Jagadish, 5000,6000, 0
Input
Name,Sal,Month
Hari,2000,Jan
Hari,1000,March
Gokul,3000,Jan
Ganesh,4000,Feb
Jagadish,5000,Jan
Jagadish,6000,Feb
Output
Name, Jan , Feb, March
Hari, 2000, 0 , 1000
Gokul, 3000, 0 , 0
Ganesh , 0 ,4000, 0
Jagadish, 5000,6000, 0