1. How to fetch all the duplicate records from the table.
2. How to fetch the second highest salary from the table.
Answer Posted / neelu
select max(salary) from employees where rownum<= 2
order by salary desc
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How many categories of functions based their return modes?
What are the new scripting capabilities of ssms? : sql server management studio
If user is owning any SQL Objects, can we drop that user
How do you troubleshoot errors in a SQL Server Agent Job?
Why I am getting this error when dropping a database in ms sql server?
Difference between Logical Page and Physical Page in SSRS.
When we should use @@error?
Explain about SQL server 2005?
Why is normalisation important?
How do you manipulate data?
Is sql server is free?
Can you please explain the difference between function and stored procedure?
can a database be shrunk to 0 bytes, if not, why? : Sql server administration
what are different types of raid configurations? : Sql server database administration
Tell me what do we need queues in sql service broker?