If you are used to working with Excel, you know that all you need is IFERROR() function to avoid any issues with dividing by 0. Also adding a blank to a number is not creating any issues in Excel. In SQL, however, its not that straight forward, you need to remember to differentiate between ISNULL()…