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 normalization means?
How can you select unique records from a table?
Write a sql select query that only returns each name only once from a table?
How to download oracle sql developer?
What are different clauses used in sql?
What is dialect in sql?
How many triggers can be applied to a table?
What are % type and % rowtype?
What is a stored procedure in sql with example?
Why we use pl sql?
How do you clear the screen in sql?
What are the advantages of normalization?
What is a primary key called that is made up of more than one field?
What is trigger in pl sql?
Which constraints we can use while creating database in sql?