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
How to define an oracle cursor variable?
How to view all columns in an existing table?
What is truncate oracle?
Differentiate between function and procedure in oracle.
11. Display the client number and name and the client number and name of the person who referred that client.
What is an oracle recycle bin?
What are the advantages of oracle?
WHAT IS THE DEFINITION OF DEFAULT CUSTOMER IN AR?
How to define and use table alias names in oracle?
What happens to the current transaction if the session is ended?
What are the different types of synonyms?
How to use "for" statements in oracle?
What is the relationship among database, tablespace and data file?
what happened to the global index when I truncate the data in one of the partition?
What is an oracle data file?