How to mimic SELECT … LIMIT, OFFSET in OpenEdge SQL?
It's a common thing in most SQL implementations to be able to select a "sliding window" subset of all the rows returned in a query. A common use case for this is pagination. For example, say I have a search page with 10 results on each page. For implementations that support LIMIT and OFFSET keywords, the query used to return results for each page would be as follows: page one would use SELECT ... LIMIT 10 OFFSET 0 , page 2 would use SELECT ... LIMIT 10 OFFSET 10 , page 3 would use SELECT ... LIMIT 10 OFFSET 20 , etc. (note that the OFFSET takes effect before the LIMIT ). Anyway, I'm trying to