Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / sanjib b
select last_name,salary from employees where salary =
(select max(salary) from employees
where salary <> (select max(salary) from employees))
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do we use subquery?
Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?
What are the two types of exceptions in pl/sql?
How do I create an index in word?
What is the largest value that can be stored in a byte data field?
Is not null in sql?
Is pl sql a programming language?
How do I view a view in sql?
Explain scalar functions in sql?
What is a natural join sql?
Is left join and outer join same?
Can we use rowid as primary key?
What is the difference between sql and isql*plus?
What is assignment operator in pl sql?
What is t sql used for?