Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Insert data into a SQL table from another SQL table which has data in a specific format .

$
0
0

Please help me with the below scenario .

Table "A":

Part#              shippinginfo1                           

ABC12             1:9.99:5.99|2:11.99:7.99                                   

DEF34             4:3.44:5.44|6:8.99:9.99

I want to populate Table "B" from Table "A" as follows :

Part#         ship_method      ship_cost               handg_cost                     

ABC12        1                        9.99                          5.99                              

ABC12        2                        11.99                          7.99

DEF34        4                         3.44                           5.44

DEF34         6                        8.99                            9.99


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>