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 |
Explain the use of grant option in exp command.
What is a system tablespace and when it is created?
How do you handle duplicate records in a database?
How do you ensure database security?
what is the difference between UNION AND UNIONALL
how to find the second highest salary in a given table????
Explain an exception?
What is Virtual Private Database in Oracle?
Select all the employees who were hired in last 2 years and who works in dept where max managers are working.
what is data independence exactly? give an example
What to do if dba lost the system password?
How can we view last record added to a table?