Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

DUPLICATE VALUE

$
0
0

Hi,

I have this column A, B, C, D...

A                B                                      C                    D

FW             BASKETBALL                       20                  2012/04

AP             BASKETBALL LICENSE          40                  2013/04

AP             BASEBALL TEAM                  60                  2013/04

NOW I need to duplicate all the values with License to AP,LICENSE and Team & License also same with TEAM. I have more than 10000's different kind of B so I cannot hardcode. Is there anyway to do this?

I need:

A                                            B                                      C                    D

FW                                 BASKETBALL                            20                  2012/04

AP                                  BASKETBALL                            40                  2013/04

TEAM                               BASKETBALL                           40                  2013/04

TEAM & LICENSE             BASKETBALL                             40                  2013/04

AP                                       BASEBALL                           60                  2013/04

TEAM & LICENSE             BASKETBALL                              60                  2013/04

TEAM & LICENSE             BASKETBALL                               60                  2013/04


SPPandey


Viewing all articles
Browse latest Browse all 7129

Trending Articles



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