Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
sharonchapman
Starting Member
35 Posts |
Posted - 2001-10-17 : 19:09:21
|
| I have the following expression:[Inflation Adjusted Total] = CASE WHEN ([In Service Year] - [Estimate Base Year]) = 0 then 0 elsePOWER(Convert(Decimal(15,1),((dbo.v_ProjectTotalCosts.[Total Job Incl IDC]*(Convert(Decimal(15,1),[contingency]/100+1)))*(1+Convert(Decimal(15,1),[Inflation Rate]/100)))),(Convert(Float(24),([In Service Year] - [Estimate Base Year])))) END,Total Job Incl IDC = 3061.00Contingency = 10.0Inflation Rate = 3.0In service yr = 2002Estimate Base Year = 2001I get the error message: Arithmetic overflow error converting expression to data type float.If I remove the Power() and just subtract the dates from the expression, it works. When I add the Power(), I get the above error.Can someone help me? |
|
|
|
|
|