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

Answer Posted / mohsin mukri

select max(salary) as Salary from tbl_Employee
where salary < (select max(salary) from tbl_employee)


sory above post ans is wrong bcoz i forgot to remove = sign

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

if there are two application 1 and 2 having a variable x in both app if client1 changes value of x in 1 app client 2 want reads the value of x from 2 app what resultant value will he get

1858


How do you handle this COM components developed in other programming languages in .NET?

582


Explain the five stages in a dlx pipeline? : Dot net architecture

490


What is an interrupt? : .NET Architecture

477


The maximum report processing jobs limit configured by your system administrator has been reached.How I can Solve this problem when i using crystal report to load from my application.

14067






Explain the difference between primary & secondary storage device? : .NET Architecture

532


difference between data reader and dataset

1786


Explain the types of memory management? : .NET Architecture

521


difference between Response.write,server.transfer and also which one is used when ?

1468


Explain domestic architecture artifacts? : Dot net architecture

516


What is .net mobile utility controls. : Microsoft dot net mobile

497


Whats new features in Visual Studio 2012?

550


What re interop services?

561


What is the difference between l1 and l2 cache? : Dot net architecture

523


Define an interrupt? : Dot net architecture

554