To find second largest salary in Employee table

Answer Posted / amit

select max(salary) from employee where salary != (select max
(salary) from employee)

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When would you prefer to have a minimum number of indexes?

503


what are candidate key, alternate key and composite key? : Sql server database administration

491


What are commonly used odbc functions in php?

536


Can you explain various data region available in ssrs with their use?

545


What is an example of a foreign key?

507






How do I open port 1433?

521


Do you know what is openxml in sql server?

610


What are the advantages of stored procedure in sql server?

463


What is a non clustered primary key?

508


Explain the rules for designing files and file groups in sql server?

548


Explain about extended stored procedure?

486


i have made a project i vb.net n created a .exe of it after installing it in to any pc, the database (sql express) is not geting accesed i.e the aplication cuts the link of the database, so plz help in this matter.

1374


What is a schema in ms sql server 2005?

564


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

605


Are there issues when exporting SSRS reports into Microsoft Excel? When my users are trying to export a SSRS report into Microsoft Excel, one or two columns in the report appear to merge together. Why might this be?

134