I have the below Sourcetable in my DB, where the CompanyInfo is defined as varchar(Max).
UserId | Name | CompanyInfo |
1 | Johny |
|
2 | Harry |
|
I created two table parentTable and childTable
Can u help me in building a Query from the sourceTable, so that I can insert the values as below.
parentTable
UserId | User Name | AgentNumber | AgentAdress | AgentCity |
1 | Johny | 1017412 | PO Box 19150 | Agent City |
2 | Harry | 1017413 | PO Box 19151 | Agent City1 |
childTable
UserId | User Name | ChildAgentNumber | ChildAgentAdress | ChildAgentCity |
1 | Johny | 2017412 | PO Box 29150 | Child City |
2 | Harry | 2017413 | PO Box 29152 | Child City1 |
Jignesh KumarPosted Apr 11, 2020, 11:33 AM