Write a query to get all details of employee who has maximum
salary from employee table
Answer Posted / mithilesh gatole
Answer -
SELECT FROM Employee Emp1 WHERE (N-1) = ( SELECT COUNT(DISTINCT(Emp2.Salary)) FROM Employee Emp2
WHERE Emp2.Salary > Emp1.Salary)
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
Does a specific recovery model need to be used for a replicated database? : sql server replication
What is difference between views and tables?
How do we synchronize On-Premise SQL server with SQL Azure?
what are the steps you will take to improve performance of a poor performing query? : Sql server database administration
What is statement level trigger?
Can we update data in a view?
Where cross join is used?
What is sql server replication? : sql server replication
What are the purposes and advantages stored procedure?
What are approximate numeric data types in ms sql server?
Explain transaction server isolation?
What is function of master database?
Explain the functionalities that views support?
What is partition, how will you implement it? : sql server analysis services, ssas
What is the purpose of self join?