直接 case when a>percentile(a,0.1) then 1 else 0 end报错,求助怎么做筛选呀
用子查询。先查percentile(a,0.1),再将结果连接原来的表当做子表。再用case when查这个子表。