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

updating two columns with sequence numbers with where clause

$
0
0

I have a question  in SQL server and I really appreciate that if some one can help me!

example

I have a table which has two column like following table and I don't know how can I update theses two column with identity numbers but just the fields which are equal 111.

my example table:

numeznumhx

111111

111111

0111

1110

1110

and my results should be:

numeznumhx

12

34

05

60

70



Viewing all articles
Browse latest Browse all 7129

Trending Articles



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