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 are the uses of db2 optimizer?

1296


What is a db2 tablespace?

1068


What is the use of db2?

1057


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

9216


What is the physical storage length of time data type?

1129


What is multi row fetch in db2?

1052


Is db2 a mainframe?

1044


What is the use of reorg in db2?

1086


What is the role of data manager in the db2 database?

1110


what is the sqlcode -501

13161


What is db2 stogroup?

1161


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

2217


What is the purpose of using commit?

1100


What does db2 stand for?

1027


What is the physical storage length of the data types date, time, and timestamp?

1091