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
Can another user execute your local temporary stored procedures?
What is the openxml statement in sql server?
Explain different types of index?
What is recompile sql server?
What is the difference between ddl and dml?
What does nvl stand for?
Which tcp/ip port does sql server run on? How can it be changed?
How to call a function from a stored procedure in SQL Server ?
Explain about SQL server 2005?
In what three ways is the return statement used in a stored procedure?
Explain the difference between functions and stored procedures in sql server?
What is difference between view and materialized view?
How to throw custom exception in Stored Procedure?
What are transactions and its controls?
What is the meaning of sql server?