how to find the 2nd higgest salary in the column for example
take table name is employee?
And also find bottom 2nd lowest salary ?

Answers were Sorted based on User's Feedback



how to find the 2nd higgest salary in the column for example take table name is employee? And also..

Answer / prasoon madnawat

SQL Server:
Select MIN(Salery) from (SELECT TOP 2 * from EMPLOYEE)

Oracle:
Select MIN(Salery) from (SELECT * from EMPLOYEE where ROWNUM <3)

MySQL
Select MIN(Salery) from (SELECT * from EMPLOYEE LIMIT 2)

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More Dot Net AllOther Interview Questions

How cache coherency is eliminated? : Dot net architecture

0 Answers  


What is .net mobile images control. : Microsoft dot net mobile

0 Answers  


can aspx page have multi language declarations ?

1 Answers  


What is cache coherency and how is it eliminated? : Dot net architecture

0 Answers  


5. Wcf- Session Managment

0 Answers   PCS,






Is dim fs as filestreamobject is a managed code? : Dot net architecture

0 Answers  


What is different about namespace declaration when comparing that to package declaration in java?

0 Answers  


What is gui programming? : .NET Architecture

0 Answers  


What is a virtual memory? : Dot net architecture

0 Answers  


Explain .net mobile selectionlist control? : Microsoft dot net mobile

0 Answers  


Which Binding best suits where a WCF Service and the client application resides in the same machine?

2 Answers   Cap Gemini,


hi, kindly send WWF(.net 3.5) pdf notes to my id. thanx in advance, chays

0 Answers  


Categories