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

Does mysql_real_escape_string prevent sql injection?

910


How would you convert date into julian date format?

949


Is sql a microsoft product?

897


I need a function for a train ticket reservation please answer it thanks in advance

957


tell us something about heap tables. : Sql dba

1049


What is compiled query?

956


Explain the significance of the & and && operators in pl sql.

952


What are system versioned tables?

969


How many parts of a pl sql block are optional?

1035


What does over partition by mean in sql?

923


What are string functions in sql?

1174


Which tcp/ip port does sql server run on? How can it be changed? : Sql dba

934


define join and explain different type of joins? : Sql dba

900


what is meant by nl2br()? : Sql dba

975


Show the cursor attributes of pl/sql.

998