How to select the name of employee who is getting maximum
sal with out using subquery

Answers were Sorted based on User's Feedback



How to select the name of employee who is getting maximum sal with out using subquery..

Answer / rushi

select ename from employee where sal=(select disinct(max(sal) from employee));

Is This Answer Correct ?    2 Yes 8 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / rohit

SELECT ENAME,SAL FROM EMP
WHERE ROWNUM = 1
ORDER BY SAL DESC

Is This Answer Correct ?    0 Yes 7 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / shan

select ename,max(sal)from emp
group by ename

Is This Answer Correct ?    0 Yes 8 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / mk

select Name from emp where sal=(select distinct(Max(sal))
from emp

Is This Answer Correct ?    4 Yes 14 No

How to select the name of employee who is getting maximum sal with out using subquery..

Answer / hari.sidd

SELECT ENAME
FROM EMPLOYEE
WHERE ESAL=MAX(ESAL);

Is This Answer Correct ?    1 Yes 12 No

Post New Answer

More Oracle General Interview Questions

can u send the sql dumps to sivakumarr1987@gmail.com plz help me

0 Answers  


I have a table like this Table Name:Products Productid Price 1 10 1 10 2 20 3 30 3 30 But i want to output like this. productid price 2 20. please replay me.

3 Answers   TCS,


What is an oracle?

0 Answers  


What do you mean by merge in oracle and how can we merge two tables?

0 Answers  


What is DTS and purpose of DTS ?

1 Answers   TCS,






Explain the difference between a procedure and a function? What do you understand by those terms?

0 Answers  


why can't we assign not null constraint as table level constraint

3 Answers   CTS, Wipro,


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 ?

0 Answers   Oracle,


Display those managers salary greater than the average salary of his employees?(Based on oracle standard Emp table)

6 Answers  


Can we create more than one index on particular column?

1 Answers  


What is MTTR advisor in Oracle?

0 Answers   MCN Solutions,


What are Schema Objects ?

2 Answers  


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)