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

Moving the decimal

$
0
0

Hi,

I have a decimal field (10,4) that has
values in it like:

0.0123
0.0063
0.0595

I need a way in my
select statement to make them look like:

1.23
0.63
5.95

I've
tried this but it's not correct:

SELECT
CAST([Overtime Actual
Percentage].[Actual Overtime Percentage]*100 AS DECIMAL(20)) AS 'Actual Overtime
Percentage',


qeqw


Viewing all articles
Browse latest Browse all 23857

Trending Articles



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