Using round, isnull, and sum in the same select

  • Is this possible? I wish to sum the column, round it, and also account for null values in a single statement, something like

    select isnull(round(sum(column),0) as Total from table where blah = blah

    The statement above does not work, obviously, but what will?

  • You're missing the second parameter and closing parenthesis to either ROUND or ISNULL.

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2

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

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