please tell me the query to get details of the employee
having the second largest salary

Answer Posted / ss

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

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?

642


What are the different types of collation sensitivity?

660


What is resource db in sql server?

671


How do you open a cluster administrator?

699


What is Extended user-defined?

625






What do you mean by authentication modes in sql server?

697


What is the difference between insensitive and scroll cursor?

667


How to execute the cursor queries with "open" statements?

702


Explain about SQLOS?

657


What is default constraint?

623


What is 1nf 2nf and 3nf?

576


Explain candidate key, alternate key, and composite key?

667


Explain the functionalities that views support?

766


How to compare the top two records using sql?

860


How to round a numeric value to a specific precision?

650