- 1
- 2
- 3
- 4
- 5
- 6
SUM(
CAST (
SUBSTRING(CAST([PercentAmount] AS VARCHAR),1, CHARINDEX ('.',[PercentAmount])-1)
+ '.'
+ SUBSTRING(CAST([PercentAmount] AS VARCHAR),CHARINDEX('.',[PercentAmount])+1, 2+CHARINDEX ('.',[PercentAmount]))
AS MONEY))