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 steps for performance tuning.
Why commit is not used in triggers?
What is a crud api?
How do you remove duplicate records from a table?
How can I change database name in sql?
Why do we use set serveroutput on?
how can we find the number of rows in a table using mysql? : Sql dba
What is $$ in sql?
How to Declare Fixed Length String Value In PL SQL
What is asqueryable?
Does a user_objects view have an entry for a trigger?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What is an inner join sql?
What is the difference between a primary key and a unique key?
What are aggregate functions in sql?