Write a query to get 2nd maximum salary in an employee table ?
Answer Posted / satya_k21
Hi,
Select * from emp e where 2>= (select count(sal) from
emp e where sal>=e.sal) order by desc.
Let me know if it is wrong..
Regards,
Satya.K
| Is This Answer Correct ? | 11 Yes | 16 No |
Post New Answer View All Answers
what is cursor. write example of it. What are the attributes of cursor.
Define tables and fields in a database
What is numeric function sql?
Should I use mbr or gpt?
Explain aggregate functions are available there in sql?
How show all rows in sql?
what is “go” in t-sql? : Transact sql
How many scalar data types are supported in pl/sql?
What jobs use sql?
How do I filter in sql profiler?
What is pl sql block structure?
How sql query is executed?
What is a null value?
what is a table in a database ? : Sql dba
What are the possible values that can be stored in a boolean data field?