I have a table emp (ename,eid,did,sal,sex) where column did is foreign key with another table dept (did,dname).
I want to get the nth sal of the company along with person's details . I am executing following query(my table has 10 rows)
SELECT rownum,vi.* FROM
(SELECT * FROM emp ORDER BY sal desc) vi
WHERE ROWNUM >5;
when I execute rownum>5 or rownum=5 get "no data" but if i execute rownum<5 then i get 4 rows displayed.
.I want the data when I do rownum=n