콘텐츠로 이동

가중치를 적용한 근사 백분위수 값을 반환합니다.

func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)
func.percentile_approx_weight(get_column(table, 'val'), get_column(table, 'weight'), 0.5)
┌──────┐
│ 72.5 │
└──────┘
PERCENTILE_APPROX_WEIGHT(<val>, <weight>, 0.5)
SELECT PERCENTILE_APPROX_WEIGHT(val, weight, 0.5) FROM data;
┌──────┐
│ 72.5 │
└──────┘