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

how to calculate odd and even place digits in SQL?

$
0
0

Hi,

I have a field called number-196421744643

now i want to pick odd and even place numbers. For example odd place 1+6+2+7+4+4=24 and even place number 9+4+1+4+6+3=27

I need this to be calculated for all the rows innumber field. Do we have any in buit function is provided or we need to calculate by using some logic? please help me on this.

Thanks,

Jagadeesh


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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