How to select the name of employee who is getting maximum
sal with out using subquery
Answers were Sorted based on User's Feedback
Answer / rushi
select ename from employee where sal=(select disinct(max(sal) from employee));
| Is This Answer Correct ? | 2 Yes | 8 No |
Answer / rohit
SELECT ENAME,SAL FROM EMP
WHERE ROWNUM = 1
ORDER BY SAL DESC
| Is This Answer Correct ? | 0 Yes | 7 No |
Answer / mk
select Name from emp where sal=(select distinct(Max(sal))
from emp
| Is This Answer Correct ? | 4 Yes | 14 No |
Answer / hari.sidd
SELECT ENAME
FROM EMPLOYEE
WHERE ESAL=MAX(ESAL);
| Is This Answer Correct ? | 1 Yes | 12 No |
what is analyze command ? what kind of statistics does it generate?
How to write date and time interval literals in oracle?
what is exact difference between drop and truncate table.
how to find out largest value in a table
waht is referencial integrity?
For a field in a repeating frame, can the source come from the column which does not exist in the data group which forms the base for the frame ?
What is a shared pool?
Difference between NO DATA FOUND and %NOTFOUND?
which statement is running fastly ie insert or delete?
What is Trace File ?
What is index-organized table in Oracle?
What are the differences between primary key and unique key?