• Great question. Learned two new things today:

    * nullif

    * how SQL converts an empty string to a numeric datatype.

    Nice one!

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP