Write a query to get all details of employee who has maximum
salary from employee table

Answer Posted / sureshramsing

select * from(select e.* from emp e order by sal desc) where rownum=1;

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add additional conditions in SQL?

580


What are page splits?

577


What are the export options of ssrs?

124


How do I start sql server agent automatically?

495


Explain what are the restrictions while creating batches in sql server?

571






A trigger can reference objects outside the current database? State true or false.

543


What is replication and database mirroring?

568


What do you understand by triggers and mention the different types of it?

479


Tell me in brief how sql server enhances scalability of the database system?

513


What are the different sql server versions?

505


What is candidate key with example?

504


How retrieve field names from the table in SQL through JAVA code?

1393


How to change parameter value inside the report?

104


What are types of storage modes? : sql server analysis services, ssas

573


How to use copy and concatenate commands in SQL?

590