I am trying to divide 2 columns which are defined as nvarchar
, but SSMS throws an error saying you can not use /
operator on nvarchar
.
select
location, date, total_cases, total_deaths,
(total_deaths / total_cases) * 100
from
CovidDeaths#xlsx$
order by
1, 2
I am unable to divide the total_cases
and total_deaths
.