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 / gyana ranjan behera

simply write the sql query like

sql>select Emp_ID from table_name groupe by Address_ID
having count(Address_ID )>1;
this is working as per the requirement..i tested
that..thanx ..pls send responces and questions on my mail
id to discuss new situations.

Is This Answer Correct ?    14 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do I get unexpected characters from 8-bit character sets in weblogic jdriver for oracle?

604


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1433


What language does oracle use?

591


How to drop an index?

539


What do you mean by a tablespace?

560






Can we connect to ORACLE db using Windows Authentication?

716


How to compare dates in oracle sql?

649


How to use subqueries in the from clause in oracle?

578


what is normalisation?what are its uses?

1754


How to declare a local variable?

590


why dont we assign not null constraint as table level constraint.

2250


In what script is snap$ created? In what script is the scott/tiger schema created?

2238


What is the usage of synonyms?

579


what is dynamic SGA and static SGA

3830


How will you differentiate between varchar & varchar2?

587