Click here to Skip to main content
15,891,725 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi guys,

I have a table named EMPLOYEE as shown.

pk_emp_code Name Desc_Child1
----------- -------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
000001 DEMO123 ok
E0000860 AMITABH Yes,son
Mayy002 Mayy002 Yes,daughter,Delhi,South Delhi
Mayy003 Mayy003 Yes,daughter,Delhi
Mayy004 Mayy004 Yes,daughter,
Mayy005 Mayy005 Null

How can i get the result like this:

pk_emp_code name FirstField SecondField ThirdField FourthField
000001 DEMO123 ok
E0000860 AMITABH Yes son
Mayy002 Mayy002 Yes daughter Delhi South Delhi
Mayy003 Mayy003 Yes daughter Delhi
Mayy004 Mayy004 Yes daughter
Mayy005 Mayy005 Yes


Thanks in advance.
Posted
Comments
rakesh@bbspl.com 5-Mar-13 3:01am    
Please help...

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