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

Duplicate value

$
0
0

Hi,

I have a table where one of my column is PE and it has a data like(FW,AP and EQ). Another column is there with Description , value,code ..

PE       Description

AP     Baseball

AP     Baseball Team

AP       Baseball License


Now I need to furue out how to  leave AP as it is and then change that Team and License to as (Team and License) and add the value. So my table should look like 

PE    Description 

AP       Baseball

AP                         Baseball Team

AP                                 Baseball License

Team & License      Baseball

Mu other condition is that in some of the cases I dont have either Team or License but I still need Team+License. For Example..

PE       Description

AP     Baseball

AP     Baseball Team

But I need....

PE                       Description

AP                      Baseball

AP                      Baseball Team

Team                  Baseball Team

Team & License   Baseball

Any help is Appreciated...

Thank you,



SPPandey


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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