预期为“)”但在 [5:45] 得到关键字 AS
Expected ")" but got keyword AS at [5:45]
select
usertype,
concat(start_station_name,"to", end_station_name) AS route,
COUNT(*) as num_trips,
round(avg(cast(tripduration as int64)/60,2) AS duration
from 'bigquery-public-data.new_york.citibike_trips'
group by
start_station_name, end_station_name, usertype
order by
num_trips DESC
limit 10
忘记关闭 AVG 函数的括号:
round(avg(cast(tripduration as int64)/60),2) AS duration f
见/60)
末尾的括号
select
usertype,
concat(start_station_name,"to", end_station_name) AS route,
COUNT(*) as num_trips,
round(avg(cast(tripduration as int64)/60,2) AS duration
from 'bigquery-public-data.new_york.citibike_trips'
group by
start_station_name, end_station_name, usertype
order by
num_trips DESC
limit 10
忘记关闭 AVG 函数的括号:
round(avg(cast(tripduration as int64)/60),2) AS duration f
见/60)