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 is the maximum rows in csv?

977


What is oracle and pl sql?

1159


What is the requirement of self-join?

1206


what is primary key? : Sql dba

1077


What are the types of functions in sql?

1064


What are stuff and replace function?

1141


How many disk partitions should I have?

1040


What is schema in sql example?

1277


What is the difference between row level and statement level trigger?

1071


What is thread join () in threading?

1057


What is sql analyzer?

1059


what is the difference between truncate and delete statement? : Transact sql

1116


What does over partition by mean in sql?

1039


What are the sql aggregate functions?

1182


How to return an array from java to pl/sql?

1181