Вопрос

I'd like to implement a series of queries with rounding in Google Query Language, such as:

select round(age,-1), count(id) group by round(age,-1)

or any combination of int/floor/etc.

select int(age/10)*10, count(id) group by int(age/10)*10

Is there any way to do that? I suspect no, as the list of scalar functions in GQL is very limited, but do wonder if there's a workaround.

http://code.google.com/apis/chart/interactive/docs/querylanguage.html#scalar_functions

Это было полезно?

Решение

No, I dont think we can do rounding in GQL...

The link that you have shown is not for google app engine...

Другие советы

Add a format at the end of the query, for example:

"select age format age '0'"

See Google Query Language Reference - Format.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top