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

In a single table,How to retrieve a employee-id of an
employee who works in more than one department?

Answer Posted / anonymous

select emp_id from employee where dept in (select distinct
dept from employee) group by emp_id having count(*) >1;

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is host variable?

1113


What is buffer pool?

1160


Can one database have multiple instances?

1097


Can we update view in db2?

1055


What is with ur in db2?

1386


How can the firstname and the lastname from the emp table be concatenated to generate complete names?

1324


What is an instance database?

1098


can all users have the privilage to use the sql statement select * (dml)?

1224


What do you mean by rollback?

1034


How to view db2 table structure?

1067


What kind of database is db2?

1087


List some fields from sqlca?

1107


What is cascading rollback?

1281


What type of database is db2?

1020


How would you find out the total number of rows in a db2 table?

1095