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
When you have to use a default "rollback to" savepoint of plvlog?
Is left join same as join?
ERROR:Insert or update on table"accnt" violates foreign key constraints "acct_to_curr_symbol" DETAILS:KEY(accnt_curr_id)(-2)is not present in the table "curr_symbol" ......solve The Problem..
What is a column in a table?
What is the main difference between sql and pl/sql?
List the different type of joins?
what is the use of anchoring object? what r the difference between anchoring object & enclosing object? can any one tell me all the details?
What is time based sql injection?
What is sql key?
Enlist the data types that can be used in pl/sql?
Can we create foreign key without primary key?
What is sqlca in db2?
what is a stored procedure? : Sql dba
How can we debug in PL/SQL?
How many functions are there in sql?