From an Employee table, how will you display the record
which has a maximum salary?
Answer Posted / kavitha nedigunta
select * from emp e,(select max(sal) sal
from emp)a
where e.sal= a.sal;
select * from emp
where sal in(select max(sal) from
emp);
| Is This Answer Correct ? | 29 Yes | 3 No |
Post New Answer View All Answers
What are reports usually used for?
What are conditional predicates?
What is oracle sql developer?
What is difference between left and right outer join?
How can I get the number of records affected by a stored procedure?
how to get help information from the server? : Sql dba
what is the difference between rownum pseudo column and row_number() function? : Sql dba
What are hotfixes and patches?
what is transaction? : Sql dba
What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql
write an sql query to find names of employee start with 'a'? : Sql dba
what are the drivers in mysql? : Sql dba
Where not exists in sql?
what is the difference between mysql_fetch_array and mysql_fetch_object? : Sql dba
How delete all records from table in sql?