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

What are .net mobile controls features? : Microsoft dot net mobile

580


how to create applications by using Visual Studio 2012?

654


how can we achieve language interoperability through CLS? How MSIL works?

701


Explain dma? : .NET Architecture

622


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure on hardware that converts the ascii value to binary? : .NET Architecture

541






What is the purpose of cache? : Dot net architecture

619


what is the difference between master page and content page?

2211


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

574


Can I create my own metadata attributes?

617


How do we do authentications using atlas?

621


So what exactly is the configuration file for then?

624


What is the mesi? : Dot net architecture

628


Explain the number or character entered through keyboard gets converted to equivalent ascii code & it get stored on ram in the binary form. What is the exact procedure. : Dot net architecture

624


Difference between throw exception and rethrowing ?

1747


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

593