blob: c96cad25fb89a89520b5734a93b78a4c2fa92b1b (
plain) (
blame)
1
2
3
4
5
|
/* syntax version 1 */
/* postgres can not */
$data = (select mod, aggregate_list(value) as lv from plato.Input group by cast(key as uint32) % 10 as mod);
select * from $data flatten by lv as iv order by iv;
|