Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / varun
select max(sal) from emp ((select sal from emp)-(select max
(sal) from emp))
Is This Answer Correct ? | 5 Yes | 8 No |
Post New Answer View All Answers
What is user in sql?
what does myisamchk do? : Sql dba
What are the types of dbms?
what is commit? : Sql dba
What is use of package in pl sql?
Can we rollback delete command?
Explain autonomous transaction.
how to present a past time in hours, minutes and seconds? : Sql dba
How do I write a sql query in pgadmin 4?
What is the limitation on the block size of pl/sql?
what are the properties and different types of sub-queries? : Sql dba
How to rename a column in the output of sql query?
What is java sql driver?
What is pl sql variable?
Can we use join in subquery?