我使用此代码:
select . . .,
max(case when seqnum <= cnt * 0.25 then x.MBperSec end) over (partition by x.block, x.operation) as percentile_25,
max(case when seqnum <= cnt * 0.75 then x.MBperSec end) over (partition by x.block, x.operation) as percentile_75
from (select x.*,
row_number() over (partition x.block, x.operation
order by x.MBperSec
) as seqnum,
count(*) over (partition x.block, x.operation) as cnt
from Table_CPU x
where x.Operation = 'reading' and
replace(x.block, 'KB', '') in ('64')
) x
你能帮我用一种有效的方法吗?
答案 0 :(得分:0)
List<int> sublist = new List<int>();
foreach(int i in A)
{
sublist.Add(d[i]);
}
x.Add(sublist);
答案 1 :(得分:0)