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 / sri

select A.empid from EMP A, EMP B where
A.empid = B.empid and
A.dept not = B.dept

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

1700


What is explain plan in db2?

959


What is the maximum number of columns in a db2 table?

1245


How and when does the db2 enforces the unique key?

1061


How to find the number of rows in a db2 table?

1092


Explain in detail about buffer manager and its functionalities?

1035


What is the usage of open cursor command?

1060


What is copy pending status in db2?

1088


Explain package in db2 and its advantages?

1169


List out the buffer pools in db2

1046


How many databases are there?

1024


What is the meaning concurrency in the db2 database?

1082


What type of database is db2?

932


What is the reason behind not using select * in embedded sql programs?

1075


Highlight all the advantages that are attached to a package.

1098