Click here to Skip to main content
15,747,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a Table. looks something like this:


Employeename|Details |AttendanceDates|

========================================

Benjie |124 |2013.09-20|

Benjie |345 |2013.09-20|

Benjie |356 |2013.09-21|

Benjie |466 |2013.09-21|

Benjie |517 |2013.09-22|

Benjie |912 |2013.09-22|

Hannah |102 |2013.09-22|

Hannah |97 |2013.09-21|

Rose |251 |2013.09-21|

Rose |297 |2013.09-22|

Rose |302 |2013.09-20|

Rose |364 |2013.09-20|



and I want my list to show like this:


Employeename|2013.09-20|2013.09-21|2013.09-22|

===========================================================

Benjie |124 |345 |356 |466

Hannah |102 |97 | | | | |

Rose |251 |297 |302 |364

can anyone here show how to do this?
Posted

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