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
What is report snapshot in ssrs?
What are the five major components of a dbms?
What are the different methods available under sqlcommand class to access the data?
What are types of storage modes? : sql server analysis services, ssas
What is a virtual table in sql?
What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?
What Are the Main Features of SQL Azure?
How to read data in a table with "select" statements?
What is a with(nolock)?
What does COMMIT command do?
What is catalog views?
Why should one not prefix user stored procedures with ‘sp_’?
How to retrieve field values using mssql_result()?
Why use sub query in sql server and list out types of sub queries?
What is the full meaning of dml?