how to find the second salary?

Answer Posted / amruta dash

select max(salary) from tblname where salary not in (select
max(salary) from tblname);

Is This Answer Correct ?    23 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the third normal form(3nf)?

523


What is user-defined function?

573


What is the temp table?

545


What is the usage of sign function?

595


How can I track the changes or identify the latest insert-update-delete from a table?

541






What happens if ntwdblib.dll is missing on your machine?

639


Explain the categories of stored procedure i.e. System stored procedure, local stored procedure, temporary stored procedure, extended stored procedure, remote stored procedure?

555


What is sql service broker?

592


How to Improve the performencs of SQL Server 2005 exclude stored Procedure and Indexes?

1579


How to execute stored procedure and set temp table in sql server?

560


Where views are stored in sql server?

563


What are the new features introduced in SQL Server 2000? What changed between the previous version of SQL Server and the current version?

1854


Differentiate between sql temp table vs table variable?

521


Can you explain what is the use of custom fields in report?

603


How to concatenate two strings in SQL Server.

597