Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / karthik ramasamy
Select max(salary) from salarymaster where salary <(select
max(salary) from salarymaster)
OR
SELECT MAX(SALARY) FROM SALARYMASTER WHERE SALARY NOT IN
(SELECT MAX(SALARY) FROM SALARYMASTER)
OR
Select max(salary) from salarymaster where salary<(Select
max(salary) from salarymaster)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What jobs use sql?
How do you determine the current isolation level? : Transact sql
Cite the differences between execution of triggers and stored procedures?
what are date and time data types? : Sql dba
how to convert dates to character strings? : Sql dba
How to create a menu in sqlplus or pl/sql?
What is sql performance tuning?
What are the different tcl commands in sql?
Why query optimization is needed?
Why do we use view in sql?
what is the difference between cluster and non cluster index? : Sql dba
Explain autonomous transaction.
What is prepared statement in sql?
Can we write ddl statements in functions?
what is a composite key ? : Sql dba