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
How to list all user defined functions in the current database?
List the different types of collation sensitivities in sql server?
how can you select rexcord(rows) from table A which is not present in Table B . Id being the FK in Table B referencing to ID Table A
What are the filtered indexes?
do views contain data ?
What is log shipping? Can we do logshipping with SQL Server 7.0 ?
What is raid and what are different types of raid levels?
What is a rownum?
What is Fragmentation and Defragmentation? For 32GB Table,How can we do the fragmentation?
How to update a field in SQL after ALTERING a row?
What is mean by candidate key?
What action plan is preferred if sql server is not responding?
What is an execution plan? How would you view the execution plan?
What number aggregate functions are accessible there in sql?
What are the lambda triggers?