Server: Msg 8115, Level 16, State 6, Line 6
Arithmetic overflow error converting float to data type numeric.
The statement has been terminated.
Can I just add something? 1.0 * does not work
DougP, MCP, A+
Arithmetic overflow error converting float to data type numeric.
The statement has been terminated.
Can I just add something? 1.0 * does not work
Code:
declare @Qtr char(3),@startdt datetime,@etiology varchar(50)
set @Qtr ='4th'
set @startdt ='10/1/04'
set @etiology ='Diabetic Ulcer'
update IndEtioOutcomesCountsbyEtiology
set HealedWndPerc = convert(float,HealedWndCnt) / case when
(convert(float,(select HealedWndCt from IndEtioOutcomesCounts where
facid = IndEtioOutcomesCountsbyEtiology.facid
and rptyear = DatePart(yyyy,@startdt) and rptqtr = @Qtr)) = 0) then
1 else convert(float,(select HealedWndCt from IndEtioOutcomesCounts where
facid = IndEtioOutcomesCountsbyEtiology.facid
and rptyear = DatePart(yyyy,@startdt) and rptqtr = @Qtr)) end
DougP, MCP, A+