convert data from vertical to horziontal
import_no inventory_id val
1 1 300
1 2 400
1 3 800
1 4 750
2 2 680
2 5 700
3 4 100
i need the output
import_no item1 item2 item3 item4 item5 total
1 300 400 800 750 0 2250
2 0 680 0 0 700 1340
3 0 0 100 0 0 100