[英]Syntax error: Expected end of input but got "(" at
Here's what I am trying to run in BigQuery, but keep getting error code.这是我尝试在 BigQuery 中运行的内容,但不断收到错误代码。 What am I doing wrong?
我究竟做错了什么?
#Show number of deaths of is person was smoker #显示吸烟者的死亡人数
select dea.location, dea.population, gen.female_smokers, gen.male_smokers
sum(female_smokers) as TotalFemales, sum(gen.male_smokers) as TotalMale over (PARTITION BY dea.location order by dea.location, dea.population) as RollingWomen
FROM capstone-project-317016.Portfolio1.CovidDeaths dea;
join capstone-project-317016.Portfolio1.CovidbyGender gen
on dea.location = gen.location
and dea.population = gen.population
where dea.location is not null
group by dea.population
Add comma after gen.male_smokers line 1在 gen.male_smokers 第 1 行之后添加逗号
There must be some aggregate function before over (PARTITION BY dea.location order by dea.location, dea.population) as RollingWomen在结束之前必须有一些聚合 function (PARTITION BY dea.location order by dea.location, dea.population) 作为 RollingWomen
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.