Write a query to get all details of employee who has maximum
salary from employee table
Answer Posted / sureshramsing
select * from emp where (empno,1)=(select * from(select empno,row_number() over(order by sal desc) rn from emp) where rn=1);
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is sparse columns of sql server 2008?
How to use user defined functions in expressions?
can we have a nested transaction? : Sql server database administration
What are the different types of upgrades that can be performed in sql server?
How to defragment indexes with alter index ... Reorganize?
Give an example of why you would want to denormalize a database
What are translations and its use? : sql server analysis services, ssas
Define tempdb database?
Ways to improve the performance of a SQL Azure Database?
What are acid properties of transaction?
What is the use of sign function?
Is the primary key column of a table an index in ms sql server?
When is the use of update_statistics command?
Write SQL queries on Self Join and Inner Join.
What are the advantages of the mirroring?