Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i/p table:

ID   name  age  salary  skills
 101  kailsh  20  12000  tester,develper,QC analyst

o/p:

ID   name  age  salary  skills
101  kailsh  20  12000  tester
                        develper
                        QC analyst


i need to split the skills column data
Posted
Updated 29-Apr-13 23:03pm
v2
Comments
Zoltán Zörgő 30-Apr-13 4:59am    
It can't be don this way. What you can get is:
ID name age salary skills
101 kailsh 20 12000 tester
101 kailsh 20 12000 develper
101 kailsh 20 12000 QC analyst

But you better split the data in two tables: normalize!
Dhritirao's 30-Apr-13 5:03am    
no need to repeat once again their names i just want to split the skills column data to different rows
Zoltán Zörgő 30-Apr-13 5:04am    
I understand, but you can't do that! It does not fit into the relational model. If you want to hide those fields you have to do it in your presentation layer. The result has to be the same if order is scrambled. Imagine what will happen with the data in your way.
Dhritirao's 30-Apr-13 5:24am    
actually i need to generate report in that i need to get this format.
CHill60 30-Apr-13 6:23am    
Have a look at the solutions here split string column into multiple records[^] - note that the one I posted didn't work with VS2005 but there are a couple of other ideas there

1 solution

 
Share this answer
 
v2

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