Write a query to get 2nd maximum salary in an employee table ?

Answer Posted / ahmad

Select Max(VacationHours) "MVacHrs"
from HumanResourcesEmployee
where VacationHours not in (Select Max(VacationHours)
from HumanResourcesEmployee)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How delete all records from table in sql?

556


Where not exists in sql?

505


Does sql*plus have a pl/sql engine?

576


What do you mean by rowid?

542


Can we call procedure in select statement?

522






what does the t-sql command ident_current does? : Transact sql

546


When to use inner join and left join?

530


how to do backup entire database? : Transact sql

620


how to rename an existing table in mysql? : Sql dba

582


How many rows can sqlite handle?

589


What is the most common sql injection tool?

549


How do you update a sql procedure?

527


How do I add a database to sql?

584


What are the main features of cursor?

631


how mysql optimizes distinct? : Sql dba

557