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

Answer Posted / prem chhappesh

select max(salary) from emoplyee where salary not in(select max(salary) from employee)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different types of functions in sql?

515


What are the disadvantages of file system?

618


What are the types of subqueries?

573


What is the difference between mdf and ndf files?

573


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

546






describe transaction-safe table types in mysql : sql dba

510


how can we optimize or increase the speed of a mysql select query? : Sql dba

513


Define SQL and state the differences between SQL and other conventional programming Languages?

686


How can use stored procedures in sql?

585


What is cte?

575


What is package in pl sql?

579


how to create a new table by selecting rows from another table in mysql? : Sql dba

563


What is varchar data type in sql?

520


How do I find duplicates in sql?

509


What does where 1 1 mean in sql?

549