adspace


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

Does group by remove duplicates?

1120


how to start mysql server? : Sql dba

1279


what is collation? : Sql dba

1242


what are aggregate and scalar functions? : Sql dba

1142


Can we rollback truncate?

1083


Is primary key always clustered index?

1101


what are all the common sql function? : Sql dba

1141


what are the advantages of sql ? : Sql dba

1154


What is the current version of sql?

1106


how many tables will create when we create table, what are they? : Sql dba

1155


what is bcp? When does it used? : Sql dba

1065


define sql insert statement ? : Sql dba

1108


Is primary key clustered index?

1027


how to use regular expression in pattern match conditions? : Sql dba

1125


what is dbms? : Sql dba

1070