How can I select 1st row or nth row of the table.