can anybody tell us, how to select 2nd max salary from
table.
my id is ashish.akk@gmail.com

Answer Posted / harikumar

select max(salary) as secondMax from employee where id <>
(select max(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

Define Joins?

612


What are the advantages of stored procedure in sql server?

470


How do I start sql server 2016?

525


Tell me what is normalization? Explain different forms of normalization?

548


How to get the definition of a trigger back?

551






What is trigger explain with program?

535


What are sql server procedures?

550


what is a live lock? : Sql server database administration

498


Explain the types of indexes.

643


What is schemabinding a view?

532


Is it possible to replicate data from sql server to oracle? : sql server replication

545


Distinguish between commit and rollback?

549


How do you size a resultset?

502


Why is there a performance difference between two similar queries where one uses union and the other uses union all?

512


do you know how to configure db2 side of the application? : Sql server database administration

596