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

Updating column using another column from same table

$
0
0

Hi,

Hi,

I have following table

Col1| Col2 | Col3

A     | q100 | null

B     | r200 | null

A    |  z500 | null

D    |  j700 |  null

B    |  n400 | null 

I want result as following table

Col1| Col2 | Col3

A     | q100 | xy-q100

B     | r200 | mn-r2300

A    |  z500 | xy-z500

D    |  j700 |  pq-j700

B    |  n400 | mn-n400

Please help.

Thanks,

Vivek Singh


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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