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
Can I learn sql in a week?
what is the difference between sql and t-sql? : Transact sql
Define overloaded procedure?
what is the different between now() and current_date()? : Sql dba
What is pl/sql language case sensitive?
How does stored procedure reduce network traffic?
What are the ways on commenting in a pl/sql code?
What is sql deadlock?
Can we insert in view in sql?
what are the different functions in sorting an array? : Sql dba
define data blocks ? : Sql dba
What is the requirement of self-join?
What are different types of queries in sql?
What is compute?
How does left join work in sql?