SUM Function Help

  • SUM (chg.TOTAL_QUANTITY / clpt.QUANTITY) AS calculated_exponent,

    this works, but the results are 40000.000000 / 500.000 = 80.0000000000000000000

    Can you please help me get the columns down to 40000.000 / 500.000 = 80.000??? (thinking decimal(8,3))

    Thank you

  • CAST(SUM (chg.TOTAL_QUANTITY / clpt.QUANTITY) AS DECIMAL(8,3)) AS calculated_exponent,



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

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

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