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 / arrry.net

Select top 1 salary from tbl_registration where salary in
(SELECT TOP 2 salary from tbl_registration)
order by salary desc

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explain scriptmanager control?

533


Explain the race around condition? How can it be overcome? : Dot net architecture

524


What are the main Tools to develop .Net Application?

537


Explain difference between machine config vs. Web config? : .NET Architecture

540


Define cache? : Dot net architecture

546






How can I write my own .NET host?

563


Describe the advantages of writing a managed code application instead of unmanaged one. What is involved in certain piece of code being managed?

612


What's the difference between an application and a program?

564


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

490


What do you know about machine.config file ?

568


question related to table havi colspan and row span

1794


difference between data reader and dataset

1786


Explain some of the disadvantages due to microsoft.net?

541


How do we do authentications using atlas?

532


What is the cli? Is it the same as the clr?

516