blob: 1ad133feee0a43b5615b0e6aa45927e52f9ff15f (
plain) (
blame)
1
2
3
4
5
6
7
8
|
select
median(val + 1) as med,
median(distinct val + 1) as distinct_med,
percentile(val + 1, 0.8) as p80
from (
select key, cast(value as int) as val from plato.Input
)
group by key order by med;
|