error

  • hi

    exp(sum(log(CASE WHEN field = 0.0 THEN 1 WHEN field IS NULL THEN 1 WHEN field= -100 THEN 1 ELSE 1+field/100.0 END )) )-1.0)* 100

    i am using this expression in my query, getting error

    Msg 8115, Level 16, State 2, Procedure pPortfolioDashboard, Line 166

    Arithmetic overflow error converting expression to data type float.

    any idea?

  • Please do not create duplicate posts for the same topic. It fragments the replies. Please respond in this thread. http://qa.sqlservercentral.com/Forums/Topic1281038-392-1.aspx

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

  • drew.allen (4/11/2012)


    Please do not create duplicate posts for the same topic. It fragments the replies. Please respond in this thread. http://qa.sqlservercentral.com/Forums/Topic1281038-392-1.aspx

    Drew

    Beat me to it.:cool:

    Jason...AKA CirqueDeSQLeil
    _______________________________________________
    I have given a name to my pain...MCM SQL Server, MVP
    SQL RNNR
    Posting Performance Based Questions - Gail Shaw[/url]
    Learn Extended Events

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply