how u can find the n row from a table?
Answer Posted / rishab
select emp_name,salary,rownum from
(select emp_name,salary,r from
(select salary,emp_name,rownum r from
(select salary,emp_name,rownum
from emp
order by salary desc)
order by r)
where r<4 ---- this number must be n+1
order by salary)
where rownum=1;
-- yes rownum=1 works...
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
how to start mysql server? : Sql dba
How to test for null values?
What is the limitation on the block size of pl/sql?
How do you select unique values in sql?
What problem one might face while writing log information to a data-base table in pl/sql?
What is procedure function?
Explain alias in sql?
what is a materialized view? : Sql dba
What is a parameter query?
what are the authentication modes in sql server? : Sql dba
What is procedure and function?
how is myisam table stored? : Sql dba
Why are sql stored procedures used?
How to change sql*plus system settings?
How much does sql certification cost?