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

i wish to write mcts(microsoft certified technology specialist) exam. can anyone give the model question or format and preparation method?

2313


What is IL code, CLR, CTS, GAC & GC?

598


What is .net mobile lists. Explain with an example? : Microsoft dot net mobile

501


12. Types of polymorphisem[Run and Design Exp.]

1652


What are the types of memory management? : Dot net architecture

493






what are constructors and destructors?

1725


What happens when you try to update data in a dataset in .net while the record is already deleted in sql server as backend?

517


What is Video Streaming in .net??

554


6. Wcf- what is SOA

1870


What is .net mobile forms? : Microsoft dot net mobile

516


What is difference between Desktop, Client Server & Web based applications?

539


Difference between throw exception and rethrowing ?

1674


Differences between VS 2005, 2008 and 2010 ?

582


What is an interrupt? : .NET Architecture

478


How do I know when my thread pool work item has completed?

500