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 is mdf ldf and ndf?
How many types of triggers are there in pl sql?
How do you determine the current isolation level? : Transact sql
Define commit, rollback and savepoint?
What is on delete restrict?
What is sql mysql pl sql oracle?
explain the advantages and disadvantages of stored procedure? : Sql dba
What is delimiter in pl sql?
Who is the owner of mysql database?
What does data normalization mean?
What are the ddl commands?
How do I remove all records from a table?
What are different types of tables in sql?
Differentiate between sga and pga.
What is recursive join in sql?