Hvis jeg forstår det rigtigt, kan du bruge union all
for at beregne summen for hver kolonne og derefter order by
og limit
:
select c.*
from ((select 'col1', sum(col1) as s from t) union all
(select 'col2', sum(col2) as s from t) union all
. . .
(select 'col10', sum(col10) as s from t)
) c
order by s desc
limit 3;