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...

how to check the 3rd max salary from an employee table?

Answer Posted / ar

select c.emp_id,c.salary from (select rownum as
rn1,c.emp_id,c.salary from (select * from table_name ORDER
by salary DESC) b) c
where c.rn1 = n --(n=3)

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a pdo connection?

1115


What is a recursive stored procedure?

1253


what is csv? : Sql dba

1049


What is sql character function?

1151


What is the sql*loader? : aql loader

1102


What is the difference between cross join and natural join?

1066


How to handle bulk data?

1366


Why use triggers in sql?

1011


How do I pipe the output of one isql to another?

1058


What is string data type in sql?

1215


What is the left table in sql?

1015


what is row? : Sql dba

1277


How do you rename a table in sql?

1186


Can we use the cursor's to create the collection in PL/SQL?

1092


What is on delete restrict?

1068