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

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

Answer Posted / oracle.hemant

select max(salary) from emp where salary<(select max(salary)
from emp)

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define inner join in sql server joins?

531


What are the difference between data mart and data warehouse? : sql server analysis services, ssas

498


What is code near application topology?

197


Write a sql query to display the current date?

631


How to test a dml trigger in ms sql server?

572






What is full outer join in sql server joins?

563


What do you mean by cardinality?

487


What information is maintained within the msdb database?

537


How can a database be repaired?

564


What factors you will consider calculating the storage requirement for that view?

542


How do you create type- insensitive operator?

565


What are the different types of join?

560


What is difference between sql and sql server?

538


What is the difference between an index and a unique index?

544


Why transaction is important?

561