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 do you think about pl/sql?
What is numeric function sql?
What are different types of functions in sql?
Which query operators in sql is used for pattern matching?
Does truncate release storage space?
write an sql query to find names of employee start with 'a'? : Sql dba
What are sql indexes?
how to concatenate two character strings? : Sql dba
What is function and procedure in pl sql?
What is output spooling in sql*plus?
Explain the difference between 'between' & 'and' operators in sql
How do I run a sql query in pgadmin 4?
how would you enter characters as hex numbers? : Sql dba
Which is faster count (*) or count 1?
How do I run a sql script?