prevent div by zero

This commit is contained in:
Paul Trowbridge 2019-03-21 16:50:51 -04:00
parent bb83caa46f
commit a88a611afd
4 changed files with 1702 additions and 1702 deletions

View File

@ -64,7 +64,7 @@ GROUP BY
part_descr
,bill_cust_descr
,ship_cust_descr
,value_usd/sum(value_usd) over () mix
,CASE WHEN sum(value_usd) over () = 0 THEN 0 ELSE value_usd/sum(value_usd) over () END mix
FROM
basket1
ORDER BY