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 / manikandan.d

hi all i hope this answer will help you


emp
eid ename dep
001 manikandan mainframe
002 karthi java
003 jarin mainframe
001 manikandan java
003 jarin testing
004 hariharan java
001 manikandan testing

select eid from emp e1 where 1 <

(select count(*) from emp e2 where e1.eid=e2.eid)

let me know if any new answer

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the prerogatives?

1080


What is host variable in db2 cobol?

1078


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

1173


Is the primary key a clustered index?

1149


How to find the number of rows in db2 tables?

1073


How does cobol compile db2 program?

1063


What is reorg?

1162


Is db2 a mainframe database?

1002


What is the use of predicate?

1043


How can tablespace be moved to another dasd volume that is allocated for that tablespace?

1241


What types of tables are there in the db2 database?

1061


On which levels locks can be applied?

1133


Why do we need reorg in db2?

989


How do you pull up a query which was previously saved in qmf?

1153


What does db2 mean?

1018