I have a table and I need to retrieve the ID of the Second row. How to achieve that ?
By Top 2 I select the two first rows, but I need only
Top 2
with T1 as ( select row_number() over(order by ID) rownum, T2.ID from Table2 T2 ) select ID from T1 where rownum=2