how to get max salary with employee number by using one select
query and max function ??

Answer Posted / mithilesh gatole

Answer -

select MAX(Salary) from Employee
WHERE Salary <> (select MAX(Salary) from Employee )

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define self join?

615


Difference between report and query parameter.

588


What is the difference between Stored Procedures and triggers?

559


What is Dependency Injection and provide example?

595


How do you size a resultset?

488






Do you have any idea about the tcl commands?

537


What is clr ddl trigger?

535


What is linked report?

87


How to deploy the Report?

93


How to enter comments in transact-sql statements?

538


Explain what is “asynchronous” communication in sql server service broker?

483


What is de-normalization and what are some of the examples of it?

520


What happens if the update subquery returns no rows in ms sql server?

578


State the difference between union and union all?

507


How to select some specific rows from a table in ms sql server?

552