prevent div by zero
This commit is contained in:
parent
bb83caa46f
commit
a88a611afd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user