Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Tricky Update in the same table

$
0
0

I have a query that yield a result like this

col1ID      col2      Name1      col3ID        col4       Name2      

1             200          A             1               null         null

2             null          null           2              300         A

1             400          B              1              null          null

2             null          null           2              500         B

There is no unique ID for this table, say Extbl, colIDID and col3ID has the same value, either col2 or col3 has null value, also Name1 and Name2 has null value, how can I update Extbl to have result like this?

col1ID      col2      Name1      col3ID        col4       Name2      

1             200          A           1               200         A

2             300          A           2              300         A

1             400          B           1               400         B

2             500          B           2              500         B

Thank you

Kay_D




Viewing all articles
Browse latest Browse all 28687

Latest Images

Trending Articles



Latest Images

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