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

Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / niladri saha

into my above solution,u can get whatever position u want,only by giving "n" at the place of "2" at row num. That the right way to write the query. That u can use in dynamically.
Thanks,
like if ur require ment to print empnames of having 3rd max salary,then put 3 at rownum.
Niladri Saha.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of the partition table?

1058


What is null in pl/sql?

1079


What are sql functions? Describe the different types of sql functions?

1151


what is innodb? : Sql dba

1118


How do I view stored procedures?

980


Explain what is rdbms?

1049


Enlist some predefined exceptions?

1069


What is a sql*loader control file?

1277


how many sql ddl commands are supported by 'mysql'? : Sql dba

1033


How to pipe multiline string to isql?

1014


Explain the difference between sql and mysql.

1069


What are all types of user defined functions?

1087


How is data stored on a disk?

1049


Is it possible to pass parameters to triggers?

1117


What is varchar used for?

1091