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 / sumesh s.g

select Name from TBL_Employee
where Salary in(
select max(Salary) from dbo.TBL_Employee
group by DepID
having DepID in(10,20))


--Happy Codding--

Is This Answer Correct ?    0 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what are the differences between char and varchar? : Sql dba

1029


Why is the cursor important?

1005


what are the t string functions available in tsql? : Transact sql

967


what is the difference difference between procedure and packages

10311


what is meant by urlencode and urldocode? : Sql dba

1115


What does partition by mean in sql?

927


What is data type in database?

951


what is cursor. write example of it. What are the attributes of cursor.

1339


What are the advantages of normalization?

1054


Write the alter statement to enable all the triggers on the t.students table.

1092


Which data dictionary views have the information on the triggers that are available in the database?

1206


What is a trigger in sql?

1171


What is the use of sql trace?

923


What is minus?

953


Can we commit in trigger?

942