Let\'s say I have a table that I sort alphabetically in symfony. Each item has a rather random id and I\'d like to retrieve all items after a certain ID. For example:
SELECT * FROM tbl1 WHERE name > ( SELECT name FROM tbl1 WHERE id = 3 ) ORDER BY name
(runs at least with Postgres and with Just Aguy's SQL Fiddle)