select b.* from (select rownum ooooid,a.* from (select * from tb_users order by createdate) a ) b where b.ooooid>2 and b.ooooid <=4