So I can paginate a query with LIMIT
and OFFSET
SELECT *
FROM db.table
LIMIT 6
OFFSET 0
But if I try to ORDER BY
this result I get the first n
ordered rows, not the first n
rows ordered.
SELECT *
FROM db.table
LIMIT 6
OFFSET 0
ORDER BY first_name COLLATE NOCASE
So instead of
bob
charles
dave
dan
doug
durrand
I want to get
bob
doug
elliot
manny
ralph
xavier