Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the steps for performance tuning.

1395


Why commit is not used in triggers?

1091


What is a crud api?

995


How do you remove duplicate records from a table?

984


How can I change database name in sql?

1158


Why do we use set serveroutput on?

1015


how can we find the number of rows in a table using mysql? : Sql dba

1131


What is $$ in sql?

1046


How to Declare Fixed Length String Value In PL SQL

1208


What is asqueryable?

1037


Does a user_objects view have an entry for a trigger?

1051


what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba

1094


What is an inner join sql?

1099


What is the difference between a primary key and a unique key?

1108


What are aggregate functions in sql?

1225