Need to convert the data type. I hope this will solve your problem. @Sudarshan Sampath
Select Location, date, total_cases, total_deaths, (CONVERT(float, total_deaths) / NULLIF(CONVERT(float, total_cases), 0))*100 as DeathPercentage
From PortfolioProjects..CovidDeaths
order by 1,2