Click here to Skip to main content
15,914,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all this is my data table. i need to Get Each and every Employee BasicSalary,Code,Travel,Phone,ESI.PF,... if anybody know ple Help Me...


year	month	EmployeeID	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
etc..   ..      ..      ....           ....     ...


and i need out put like this

Emp ID	XXX			
				Basic	        XXX	
Allowance		        Allow	        XXX	
A	B	C		Deduction	XXX	
Deductions						
A	B	C				
				Take Home	XXX
Posted
Updated 12-Mar-13 0:01am
v2
Comments
Aarti Meswania 12-Mar-13 6:05am    
what is A B C ???
DhananjayanP 12-Mar-13 6:46am    
it's allowance
Travel
Phone
like that

1 solution

You are asking your database to do the work of the presentation layer, wrong tool for the job. Split this into 2 operations, first get the data (use a SQL select query) then format the data in the presentation layer, probably a report tool of some sort.
 
Share this answer
 
Comments
Aarti Meswania 12-Mar-13 6:06am    
right 5+! :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900