Ja, du kan bruge dense_rank
og undgå duplikeret kode:
select col
from (select col, dense_rank() over (order by col) rnk from tbl)
where rnk <= 3
Ja, du kan bruge dense_rank
og undgå duplikeret kode:
select col
from (select col, dense_rank() over (order by col) rnk from tbl)
where rnk <= 3