select * from (
select rownum as r,t.* from(
select tableName.* from tableName order by tableColum DESC
) t where rownum<=endPos) where r>startPos
select * from (
select rownum as r,t.* from(
select tableName.* from tableName order by tableColum DESC
) t where rownum<=endPos) where r>startPos