Who have a explication or solution
My Email info@info-tact.com
Request #1 :
SELECT CASE WHEN nominal_total = 0 THEN 9.0 ELSE
10.00*1.00/nominal_total END as valeur FROM ( VALUES ( 0 ) ) as obs
(nominal_total) ;
The result is 9.0 But the request return and error -801 (division by
zéro)
Request #2 :
SELECT CASE WHEN nominal_total = 0 THEN 9.0 ELSE
10.00*1.00/dec(nominal_tot al) END as valeur FROM ( VALUES ( 0 ) )
as obs (nominal_total) ;
The result is good with not error
I tried with double(nominal_ total) or int(nominal_tot al) and I received
the same error then request #1
My Email info@info-tact.com
Request #1 :
SELECT CASE WHEN nominal_total = 0 THEN 9.0 ELSE
10.00*1.00/nominal_total END as valeur FROM ( VALUES ( 0 ) ) as obs
(nominal_total) ;
The result is 9.0 But the request return and error -801 (division by
zéro)
Request #2 :
SELECT CASE WHEN nominal_total = 0 THEN 9.0 ELSE
10.00*1.00/dec(nominal_tot al) END as valeur FROM ( VALUES ( 0 ) )
as obs (nominal_total) ;
The result is good with not error
I tried with double(nominal_ total) or int(nominal_tot al) and I received
the same error then request #1
Comment