select ceiling(cast(replace(ltrim(rtrim(replace(substring([Text], 7, patindex('% %', substring([Text],7,20))), 'FEE', ''))), ',', '') as float)) as DBTranAmt
Officially disguised as a Canadian
select ceiling(cast(replace(ltrim(rtrim(replace(substring([Text], 7, patindex('% %', substring([Text],7,20))), 'FEE', ''))), ',', '') as float)) as DBTranAmt