Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversion failed when converting the nvarchar value '2859.0' to data type int. #11

Open
Ellai2312 opened this issue Feb 19, 2022 · 4 comments

Comments

@Ellai2312
Copy link

Hey, Alex.
I would appreciate it if you could help me, I can't figure out how to fix this error:
Conversion failed when converting the nvarchar value '2859.0' to data type int.

thank you

Select dea.continent, dea.location,
dea.date, dea.population, vac.new_vaccinations
, SUM(CONVERT(int,vac.new_vaccinations)) OVER (Partition by dea.Location Order by dea.location, dea.Date)
as RollingPeopleVaccinated
From Protfolioproject..coviddeaths dea
Join Protfolioproject..covidvaccination vac
On dea.location = vac.location
and dea.date = vac.date
where dea.continent is not null
order by 2,3

@ShabazSJ
Copy link

change the "int" into "bigint"

@asrafil1997
Copy link

change the "int" into "bigint"

hi i already changed "int" into "bigint" but still give an error message
RDER BY list of RANGE window frame has total size of 1020 bytes. Largest size supported is 900 bytes.

anyone up to help? please

@ushnak-tech
Copy link

can you tell which SQL software you are using @Ellai2312

@Rishav-y
Copy link

not able to partition by over location and date gives error byte size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants