Take

Picks rows based on their position.

take {n|range}

See Ranges for more details on how ranges work.

Examples

PRQL

from employees
take 10

SQL

SELECT
  employees.*
FROM
  employees
LIMIT
  10

PRQL

from orders
sort [-value, date]
take 101..110

SQL

SELECT
  orders.*
FROM
  orders
ORDER BY
  value DESC,
  date
LIMIT
  10 OFFSET 100