Guys,
I have a below table
|
UserId |
Name |
CompanyInfo |
|
1 |
Johny |
|
|
2 |
Harry |
|
Can u help me in building a Query from the source Table(above), so that I can insert the values in the target table(below) as below.
|
UserId |
User Name |
AgentNumber |
AgentAdress |
AgentCity |
|
1 |
Johny |
1017412 |
PO Box 19150 |
Agent City |
|
2 |
Harry |
1017413 |
PO Box 19151 |
Agent City1 |
Farhan AhmedPosted Nov 2, 2020, 10:46 PM
MyDatais varchar instead of XML, then you can cast it during the query. Like this: