If you are using Oracle there are 2 ways in my opinion to do it.
Use nested subquery to get the n-th row:
select * from (
select A, B, rownum Ind from Table_1
where rownum <= 5
order by A, B
)
where Ind = 5
Or group it by acquiring columns and use "having" clause which also works:
select A, B, rownum, count(*) from Table_2
group by A, B, rownum
having rownum = 5
order by A, B