House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / SQL

NullIf and Divide By Zero

Author:
Adam Parker
12/29/2011 12:48 PM

Thank you for the guidance.  You suggestion and another tweak helped me get this functioning: avg (isNull(((docunitprice * orderqty)-((c.avglaborcost + c.avgburdencost + c.avgmaterialcost + c.avgsubcontcost + c.avgmtlburcost)*d.orderqty))/ nullIf(docunitprice * orderqty, 0),0))as PercValueAdd


Search sql

May 22, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31   

Designer, Developer and mobile workflow conference