【发布时间】:2011-10-10 01:33:09
【问题描述】:
我想用谷歌查询语言实现一系列带四舍五入的查询,例如:
select round(age,-1), count(id) group by round(age,-1)
或 int/floor/etc 的任意组合。
select int(age/10)*10, count(id) group by int(age/10)*10
有没有办法做到这一点?我怀疑没有,因为 GQL 中的标量函数列表非常有限,但想知道是否有解决方法。
http://code.google.com/apis/chart/interactive/docs/querylanguage.html#scalar_functions
【问题讨论】: