I have a query where I need to get a certain number divided by 2 fields in 2 columns.
shelve.total_qty/(GREATEST(NVL(y.FORECAST_QUANTITY, 0), NVL(z.sales, 0))/7) as Shelve_DOC
I get the notorious error.
ORA-01476: divisor is equal to zero
01476. 00000 - "divisor is equal to zero"
*Cause:
*Action:
I have read around I need a CASE/IF but I'm not sure how to..
Any help would be appreciated.