Answer Posted / madhav
select ename from emp where sal=(select max(sal) from emp);
ENAME
---------
KING
--first execute the inner query like
select max(sal) from emp;
MAX(SAL)
---------
5000
--- after that salary value pass the outer query like
this
select ename from emp where sal=5000
ENAME
---------
KING
Email:thota.madhav@gmail.com
| Is This Answer Correct ? | 2 Yes | 6 No |
Post New Answer View All Answers
How to select 10 records from a table?
What is normalisation in sql?
What is a loop in sql?
What is sql in java?
what are date and time intervals? : Sql dba
What is error ora-01000: maximum open cursors exceeded
Explain the insert into statements in sql?
What is the difference between left join and right join?
what is the difference between char_length and length? : Sql dba
What is the difference between row level and statement level trigger?
What are the string functions in sql?
How sql query is executed?
What is the clause we need to add in function body to return variable?
What are the 3 modes of parameter?
what is data integrity? : Sql dba