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

Answer Posted / eswar

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

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to drop an existing schema in ms sql server?

755


Explain following error properties?

729


How to execute a sql statement using odbc_exec()?

743


What is the data type of time?

689


What are the types of joins in sql?

773






How will you monitor replication latency in transactional replication? : sql server replication

814


Where does the copy job runs in the log shipping primary or secondary? : sql server database administration

766


How to replace given values with null using nullif()?

722


What is the difference between system objects and user objects?

884


Explain the steps to use transact-sql cursor?

666


What is public role in sql server?

746


How to convert character strings into numeric values?

774


How to add a new column to an existing table with "alter table ... Add" in ms sql server?

755


How secure is sql server database?

690


What is the meaning of sql server?

696