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

What do you mean by merge in oracle?

589


What is blob data type in oracle?

555


What is a subquery?

609


What are the benefits of ordbms?

616


Give the advantages and disadvantages of clusters.

570






what are bitmap indexes? How does they work?

1714


What is flashback in Oracle?

581


How to invoke the data pump import utility?

648


What happens to the current transaction if the session is killed?

532


How to do a full database export?

629


Please explain joins in oracle?

545


What is an anonymous block?

617


What is transport network substrate (tns) in oracle?

585


Please explain drop constraint oracle?

623


Is oracle the best database?

517