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

Substring of data

$
0
0

I have a table with a column that has a code with values like 296.0 and another column with the description of this code. If there is no description for the code 296, I want to update the description from the code 296.0. If the subsequent characters of the code, for which the description is missing, are a decimal point followed by 0s or just an additional 0 after the decimal point(in this example, 296.00), I want to get the description corresponding to the code 296.0

Please advise


SJ


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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