suppose we have a table in which 200 rows. i want to find
101 row ? what the query....
and how we find 4th and 5th highest salary and 1 to 10
highest salary

Answer Posted / hemant

select * from emp where (rowid,0) in
(select rowid,mod(rownum,101) from emp)
and rownum=1

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to create a new table in mysql? : Sql dba

714


How do I order by ascending in sql?

741


What is the difference between join and natural join?

655


What are the advantages of pl sql over sql?

733


The select into statement is most often used to create backup copies of tables or for archiving records?

769






give the syntax of grant and revoke commands? : Sql dba

803


What is meant by cursor in sql?

725


How can we store rows in PL/SQL using array?

882


how to shutdown mysql server? : Sql dba

743


Is sql a case sensitive language?

706


What are local and global Indexes and where they are useful.

1133


how can we take a backup of a mysql table and how can we restore it. ? : Sql dba

718


Why do we create views in sql?

778


What is the difference between left and left outer join?

690


What does sql stand for?

702