PDA

Click to See Complete Forum and Search --> : divide by 0 error


Bebe
Jun 22nd, 2000, 04:41 AM
why is this causing a divide by 0 error???

update #totals
set units_cancel_percent = units_sent/units_cancelled

in my temp table I am trying to divide the results of these two colums by each other in an update statement; how can I do this????

JHausmann
Jun 22nd, 2000, 06:39 AM
Maybe?

update #totals
set units_cancel_percent = units_sent/units_cancelled
where units_cancelled not null and units_cancelled<> 0

Bebe
Jun 22nd, 2000, 08:00 AM
yes, that works