这是我的数据表。我需要得到每一个Employee
BasicSalary
, Code
, Travel
, Phone
,ESI.PF
有人能帮忙吗?
year | month | EmpID | Component | Amount | Remarks
2013 | 3 | 2 | Basicsal | 15000 | dsf
2013 | 3 | 2 | CODE | 2 | dsf
2013 | 3 | 2 | Travel | 0 | dsf
2013 | 3 | 2 | Phone | 1500 | dsf
2013 | 3 | 2 | Internet | 500 | dsf
2013 | 3 | 2 | Bus Allo | 0 | dsf
2013 | 3 | 2 | BF | 0 | dsf
2013 | 3 | 2 | ESI | 0 | dsf
2013 | 3 | 2 | Medic | -500 | dsf
2013 | 3 | 2 | Cress | 101752 | af
2013 | 3 | 2 | Net | 101552 | asf
etc. | .. | .. | ... | .... | ...
但我需要这样的输出
Year | Month | EmpID | Basicsalary | CODE | Travel | Phone | cress | net
2013 | 3 | 2 | 15000 | 2 | 0 | 1500 | 101752 | 101552