Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have One Problem In My RDLC report. I am using Win-form And Back-end is MySQL.
This is my table. Column Name Student no and Student name are mistakenly changed. Sorry for that.

My datatable

My Client Asking In Other Format. Like
  Student Name | Tamil | English | Maths |

jagadeeswaran | 50.00 | 20.0   |
Kalpana       | 90.00 | 30.00  | 10.00 |

My problem is I don't how much subject is in Each year. So I can't able to do this.
Is any Possible to do this Format?. Help me.
Thanks in advance.
Posted

1 solution

You may use PIVOT & UNPIVOT.
PIVOT - UNPIVOT[^]

Then you can use Temp tables too.
 
Share this answer
 
Comments
Sagotharan Jagadeeswaran 11-Aug-11 5:53am    
thanks.

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