Examples of FIRST/SKIP
-
The following query will return the first 10 names from the
People
table:select first 10 id, name from People order by name asc
-
The following query will return everything but the first 10 names:
select skip 10 id, name from People order by name asc
-
And this one returns the last 10 rows.Notice the double parentheses:
select skip ((select count(*) - 10 from People)) id, name from People order by name asc
-
This query returns rows 81 to 100 of the People table:
select first 20 skip 80 id, name from People order by name asc