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

i have a table with the columns below as
Emp_ID Address_ID Address_Line City Country
-------- --------- ----------- ------ ---------

Q: Display the Emp_ID's those having more than one
Address_ID

Answer Posted / nitin

SELECT EMP_ID FROM EMP_ADDRESS WHERE ADDRESS_ID IN
(SELECT ADDRESS_ID FROM EMP_ADDRESS
GROUP BY ADDRESS_ID
HAVING COUNT(ADDRESS_ID) >1)

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you tell me how to add new column in existing views?how?How is possible?

1516


How much memory your 10g xe server is using?

1153


How to check the oracle tns settings?

1090


What are the different types of trigger and explain its various uses and functions?

1169


if you ctreate table identity

2430


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2874


How to view the data files in the current database?

1152


Using the relations and the rules set out in the notes under each relation, write statements to create the two sequence generators specified in the notes.

2176


How to create an oracle testing table?

1128


What are the ways tablespaces can be managed and how do they differ?

2450


What is sequence?

1137


How to connect to the server with user account: sys?

1063


How to compare dates in oracle sql?

1162


What do you mean by cdb and pdb in oracle 12c?

1102


What is raw datatype in oracle?

1211