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
Is left join same as join?
how can you create an empty table from an existing table? : Sql dba
What is a table in a database?
Can we rollback after truncate?
how can we encrypt and decrypt a data present in a mysql table using mysql? : Sql dba
Explain normalization and what are the advantages of it?
Which tcp/ip port does sql server run on? How can it be changed? : Sql dba
How do you declare a variable in pl sql?
Is time a data type in sql?
How to fix oracle error ora-00942: table or view does not exist
How do I count rows in sql query?
What are the different types of constraints?
What is embedded sql what are its advantages?
What are inbuilt functions in sql?
What are the types of views in sql?