February 1, 2006 at 8:07 am
Could someone tell what this does/how it works. It was in the select statement
convert(numeric(10,2), convert(numeric(10,2), IsNull(Run, 0))
I can figure out part of it but the convert(numeric(10,2), listed 2 times is confusing
Kurt Kracaw
February 1, 2006 at 9:42 am
I'll bite.
I think that one of the convets is redundant. Also I think it's missing a closing bracket right at the end.
convert(numeric(10,2), convert(numeric(10,2), IsNull(Run, 0))
could be re-written as
convert(numeric(10,2), IsNull(Run, 0))
The IsNull is just substituting 0 if the value of Run is NULL. The convert is forcing the 0 back to 0.00
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy