Link to home
Start Free TrialLog in
Avatar of Rex
RexFlag for United States of America

asked on

I would like my SQL to return a Zero if a Null is returned

Hello:

I am using the following expression in an Access query to generate a proportion defective

(QNs_LV_FV_qry.[SumOfDefectQty (ext)]/Shipments_FV_qry.SumOfDelivery_Qty)*1000000 AS QN_PPM

Sometimes, however, there are no defects, so the above expression returns a null. I would like it to return a zero in such cases.

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Sharath S
Sharath S
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rex

ASKER

Thanks!