How to display all the duplicate records from the oracle
Table?
Answers were Sorted based on User's Feedback
Answer / raghunath
select empno from emp group by empno having count(empno)>1;
it is working.
| Is This Answer Correct ? | 10 Yes | 1 No |
Answer / nagam
select count(*),empno from emp group by empno having count(*)>1;
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / prasad
select * from Table_name where column_name in(select Column_name from table_name group by column_name having count(1)>1)
select deptno from emp where deptno in (select deptno from emp group by deptno having count(1)>1)
u will get only duplicate records
for Example:
deptno
----------
10
10
20
20
30
40
50
by using above query the o/p displays
deptno
--------------
10
10
20
20
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between hashfile and sequential file?
I have 5 different sources i want same records in 5 different targets Can you any body send me this question answer rathdsetl@gmail.com
What is the difference between an operational datastage and a data warehouse?
How and where you used hash file?
What is the difference b/w Hash file and Lookup Fileset stages?
In merge stage can we update the values?
Where do you see different stages in the designer?
Sequential file i have one record,i want 100 records in target?How can we do that?Pls explain me and what stages are there?What logic?
In one project how many shared containers are created?
how to find diff between 2 dates without using Icon... funtions?
what is 'reconsideration error' and how can i respond to this error and how to debug this
wt is the diff b/w odbc and oracle stage