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 / sp

select top 2 ename, salary, dept from dbo.employee where
dept in(10,20) order by salary desc

Is This Answer Correct ?    1 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What information is needed to connect sql*plus an oracle server?

998


How do you use collections in procedure to return the resultset?

2211


What does pl sql developer do?

901


Can a table contain multiple foreign key’s?

966


How can you view the errors encountered in a trigger?

930


How do I view tables in sql developer?

907


What is an implicit commit?

1018


What are the different parts of a package?

1076


What is acid property in a database?

1004


How do you use join?

910


what does it mean to have quoted_identifier on? What are the implications of having it off? : Sql dba

969


How you can copy a file to file content and file to pl/sql table in advance pl/sql?

1120


What is case function?

1004


describe transaction-safe table types in mysql : sql dba

975


How do I edit a stored procedure?

963