Let\'s say I have the following database table:
record_id | record_date | record_value -----------+-------------+-------------- 1 | 2010-05-01 |
If you don't want to use order:
select * from something Offset (select case when count(id)>10 then count(id)-10 end from something)