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


What is the sql query to find the employee who has Nth
maximum salary?

Answers were Sorted based on User's Feedback



What is the sql query to find the employee who has Nth maximum salary?..

Answer / naresh

Select * From TableName T1 Where
(N-1) = (Select Count(Distinct(E2.ColumnName))
From TableName T2 Where T2.ColumnName > T1.ColumnName)

Is This Answer Correct ?    1 Yes 0 No

What is the sql query to find the employee who has Nth maximum salary?..

Answer / naweed ahmad

SELECT * FROM Emp E1 WHERE n-1 =
(SELECT COUNT(DISTINCT Sal) FROM Emp E2 WHERE E1.Sal <
E2.Sal)order by Sal desc

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Oracle AllOther Interview Questions

hi iam looking for HRMS(functional) training inst or person in hyderbad. plz help me its urgent

1 Answers  


Hey i want to join oracle apps so will you pls tell me that which institute is best in hyderabad.

0 Answers  


how to display last 5 letters from a name (take emp table ename )

6 Answers   IBM,


How would you determine the time zone under which a database was operating?

1 Answers  


How would you go about generating an EXPLAIN plan?

1 Answers   Satyam,


A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?

3 Answers  


Can We Restore a Table that accidantly dropped.

8 Answers   TCS,


what are basic modules required to implement oracle application in any oraganisation?

0 Answers  


HOW SHALL WE DIFFERENTIATE BETWEEN PRIMARY KEY AND FORIEGN KEY?

4 Answers  


Why we are using primary key and foreign key in oracle and difference between primary key and foreign key?

1 Answers  


i want to know about the javaBean.what is its purpose and how it can use in Forms.

0 Answers   Logisoft,


What is the Query Optimizer. How you optimize your qeury.

2 Answers   Ericsson,


Categories
  • Oracle General Interview Questions Oracle General (1809)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)