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

Add decimal

$
0
0

We are trying to import a file.  File has field as 10 characters sample 0000002028.

The import is expecting it to have a decimal.  How can I convert 0000002028 in the code to put the decimal in so it is 20.28?


select

cast(DtleeAmtasdecimal(10,2))  does 2028.00


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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