How can I select a particular row from a table?
I want to do achieve something like the following:
select * from
(select * from tablename1 where type=1 order by id desc)
where rownum = 5
select * from
(select * from tablename1 where type=1 order by id desc)
where rownum = $variable