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 / sathish

select max(Salary)from employee where Salary not in (select
max(Salary)from employee )



select min(Salary)from employee where Salary not in (select
min(Salary)from employee )

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an interrupt? : Dot net architecture

506


Explain is development of a mobile web application with asp.net is very easy? : Microsoft dot net mobile

516


Explain cache? : Dot net architecture

595


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

499


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

523






What is an asssembly qualified name? Is it a filename? How is it different?

510


Explain write back and write through caches? : Dot net architecture

546


Can you explain server controls in atlas?

539


What actually happes when you add a something to arraylistcollection ?

490


how to change the title of my window?

1419


Can you explain control extenders?

521


How will you do windows authentication and what is the namespace?

542


Define dma? : Dot net architecture

550


What is the purpose of cache? How is it used? : Dot net architecture

486


What is ILDASM ?

663