Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at cf.Objective() 2011 (Minneapolis, MN) with:

Lain Inverse

Member since Oct 21, 2012

Recent Blog Comments By Lain Inverse

  • Using NULLIF() To Prevent Divide-By-Zero Errors In SQL

    Posted on Jun 10, 2013 at 12:28 PM

    @Mohammad, I guess you meant COALESCE() which is mentioned in the article. Yes, it's more widely implemented while Oracle uses NVL instead of ISNULL but each function have own purpose. COALESCE is more complex function and capable to accept any number of parameters while isnull/nvl are tailored to ... read more »

  • Using NULLIF() To Prevent Divide-By-Zero Errors In SQL

    Posted on Oct 21, 2012 at 3:29 AM

    Addendum: In case when divisor could be NULL it's important to NVL it to ZERO. At least Oracle's implementation of NULLIF doesn't accept NULL value as valid parameter and returns error message about it. So, in complete form it looks like: nullif(nvl(divisor,0),0) NVL will change NULL on 0 and NU... read more »