I get a division by zero error on the following query as [OH Qty] consist of null values. How can I change it so that null is 0 (That will get rid of my division by zero error right?)?
Expressions involving Null resolve as Null, so Nulls are not causing your division by zero error. Using NZ as above could well trigger explicit division by zero and is more likely to cause a problem than cure one.
I suggest you look again at your errors to try to identify the real cause, and also decide what result you want to see when you you do have null (or zero).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.