如何在oracle数据库中获得前10名记录组? 在我的查询中,我从连接多个表获得输出。
答案 0 :(得分:0)
select *
from (
select some_column_you_didnt_tell_us,
other_column_you_didnt_tell_us,
row_number() over (partition by group_column_you_didnt_tell_us) as rn
from the_table_you_didnt_tell_us
) t
where rn <= 10;