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
what are the type of locks ? : Sql dba
Does execute immediate commit?
what is a record in a database ? : Sql dba
How to create your own reports in sql developer?
How to Declare Fixed Length String Value In PL SQL
What are variables in pl sql?
what is a tablespace? : Sql dba
how to create a table index in mysql? : Sql dba
How to start oracle sql developer?
What is sql exception?
what are myisam tables? : Sql dba
How many types of literals are available in pl sql?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What is %type in sql?
What are the query optimization techniques?