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...

consider a table which contain 4 columns,ename,eno,sal and
deptno, from this table i want to know ename who having
maximum salary in deptno 10 and 20.

Answer Posted / sonal

select * from (select ename, deptno,sal
from emp where deptno in(10 , 20)
order by sal desc)
where rownum < =1

Is This Answer Correct ?    2 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a natural join sql?

1036


What is the difference between numeric and autonumber?

1038


What are the indexing methods?

1096


How to avoid using cursors? What to use instead of cursor and in what cases to do so?

1243


Why do we use joins in sql?

1005


What are the two virtual tables available at the time of database trigger execution?

1270


What is the basic structure of an sql?

1154


How do you identify a primary key?

1113


Can we use rowid as primary key?

1041


What mean sql?

1052


How do I run a sql query in pgadmin 4?

999


Why indexing is needed?

1043


How does join work in sql?

1051


Which are the different case manipulation functions in sql?

1075


what is the difference between truncate and drop statements? : Sql dba

1177