From an Employee table, how will you display the record
which has a maximum salary?
Answer Posted / mrityunjay singh
select *from employees where rownum<2 order by salary desc;
or
select * from employee where sal=(select max(sal) from
employee);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is a database event trigger?
How can I tell if sql is running?
Explain select statements in sql?
How can I speed up sql query?
what is a unique key ? : Sql dba
what is rdbms? : Sql dba
What are different categories of sql commands?
Which are the different character-manipulation functions in sql?
How can you load microsoft excel data into oracle? : aql loader
Explain constraints in sql?
Why is there a need for sqlcode and sqlerrm variables?
Why are aggregate functions called so?
Explain how to use transactions efficiently : transact sql
what are the advantages of using stored procedures? : Sql dba
What does fetching a cursor do?