hi,
In the result of a function in my query, there are negative numbers.
How do I replace them with a 0 or is there a function like ISNULL that replaces the values that are negative?
thanks,
maartenYou can modify select statement to something like this-
select item, qty, value=
case
when value < 0 then '0' else value
end
from test
Roshmi Choudhurysql
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment