Jak wybrać nth wiersz w tabeli bazy danych SQL?

SELECT * FROM (
  SELECT
    ROW_NUMBER() OVER (ORDER BY key ASC) AS rownumber,
    columns
  FROM tablename
) AS foo
WHERE rownumber <= n
Code with bulbul