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 blob? : Sql dba
How to sort the rows in sql.
What are the two types of cursors in pl sql?
What is sql keyword?
How can I see all tables in sql?
What is exception? What are the types of exceptions?
how to convert character strings to dates? : Sql dba
What is sql mysql pl sql oracle?
Why do we create stored procedures & functions in pl/sql and how are they different?
i have some prob lem to tell me about my self in interview first round ...
What is the current version of sql?
what are the differences between public, private, protected, static, transient, final and volatile? : Sql dba
What is sqlite used for?
Is sql microsoft?
What are expressions?