Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / satish
select rownum,employee_id,first_name,max(salary) from
employees
group by rownum,employee_id,first_name
having rownum<=2
order by rownum
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is the basic structure of an sql?
What does := mean in pl sql?
What is equi join in sql?
What language is oracle sql developer?
Is primary key clustered or nonclustered?
What do you mean by field in sql?
how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba
What does <> sql mean?
what are the types of subquery? : Sql dba
what is the different between now() and current_date()? : Sql dba
What is the purpose of the partition table?
What is sql basics?
How delete all data from table in sql?
What are the types of operators available in sql?
how is exception handling handled in mysql? : Sql dba