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 tsql statements can be written and submitted to the database engine? : Transact sql
Is left join faster than inner join?
What is %s in sql?
How do you determine the current isolation level? : Transact sql
what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba
What is linq to sql?
What is db journal file?
What is left inner join in sql?
What is relationship? How many types of relationship are there?
What do we need to check in database testing?
State some properties of relational databases?
What are the most important characteristics of pl/sql?
How many commands are in sql?
What is replication id?
What is dense_rank in sql?