Ja, u kunt dense_rank
. gebruiken en vermijd dubbele code:
select col
from (select col, dense_rank() over (order by col) rnk from tbl)
where rnk <= 3
Ja, u kunt dense_rank
. gebruiken en vermijd dubbele code:
select col
from (select col, dense_rank() over (order by col) rnk from tbl)
where rnk <= 3