1. How to fetch all the duplicate records from the table.

2. How to fetch the second highest salary from the table.

Answer Posted / anbarasan k kanagaraj

select salary from user order by salary desc LIMIT 1, 1

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dropping a database and taking a database offline?

698


What are the different Authentication modes in SQL Server and how can you change authentication mode?

639


What part does database design plays a role in performance of an sql server-based application?

518


Explain encryption of entire databases without the need for application changes in sql server 2008?

564


How to get a list of columns using the "sp_help" stored procedure in ms sql server?

584






What are the types of subquery?

548


What is provisioning, billing and metering, and connection routing concepts in the service layer?

92


What is bookmark link in ssrs?

108


What are the purposes and advantages stored procedure?

499


What will be the maximum number of indexes per table?

534


What are sql server procedures?

544


Name few of the dcl commands in sql?

552


List out a number of the wants to setup a SQL Server failover cluster?

582


What is logshipping and its purpose?

559


What are page splits?

579