I have a database table with these two columns:
This table can store amounts in va
The best I've been able to come up with so far is:
select Amount/power(10, DecimalPlaces) from MyTable
But it doesn't do exactly what I want: