Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

HOW CAN I FIND MAX SAL ,ENAME FROM EMP TABLE.

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


Please Help Members By Posting Answers For Below Questions

Should I use mbr or gpt?

977


Why is pl sql used?

953


Why primary key is required?

962


How do I view tables in sql developer?

893


Which join is like an inner join?

987


Why do we need cursors in pl sql?

1019


What is the unique index?

1026


Differentiate between pl/sql and sql?

1091


Is it possible to create startup or shutdown trigger for on-schema?

999


What is sql deadlock?

1069


what is a field in a database ? : Sql dba

1012


Why function is used in sql?

902


Write the command to remove all players named sachin from the players table.

1139


What is PL/SQL Records?

1135


What is the difference between the repeatable read and serializable isolation levels? : Transact sql

1042