• You can also do this

    SELECT Dividend / ISNULL(NULLIF(Divisor,0),1) AS Result