I\'m trying to sum up Customer balances using the following query:
select sum(balance) from mytable where customer = \'john\'
However, if
Try this:
select sum(IsNull(balance,0)) from mytable where customer = 'john'