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 / vishnu

if you have table temp_test1

you fire
select * from temp_test1
now you want 101 rows
basic thing here is records are sorted by rowid as per
insertion

for 101 th row

select * from temp_test1 where rowid in(
(select max(rowidtochar(rowid)) from temp_test1 where
rownum<102))
this is asked in tech mahindra

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the type of locks ? : Sql dba

530


Does execute immediate commit?

700


what is a record in a database ? : Sql dba

568


How to create your own reports in sql developer?

543


How to Declare Fixed Length String Value In PL SQL

668






What are variables in pl sql?

569


what is a tablespace? : Sql dba

564


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

599


How to start oracle sql developer?

561


What is sql exception?

518


what are myisam tables? : Sql dba

552


How many types of literals are available in pl sql?

520


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

558


What is %type in sql?

519


What are the query optimization techniques?

536