How to display all the duplicate records from the oracle
Table?
Answer Posted / 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 |
Post New Answer View All Answers
Could anyone give brief explanation bout datastage admin
What a datastage macro?
What are the functionalities of link partitioner and link collector?
Hi, what is use of Macros,functions and Routines..? At what situation you are used. If you know the answer please explain it. Thanks.
What is the differentiate between data file and descriptor file?
how do u catch bad rows from OCI stage? And what CLI stands for?
How many types of hash files are there?
Which warehouse using in your datawarehouse
Can you explain kafka connector?
Demonstrate experience in maintaining quality process standards?
What is the difference between orabulk and bcp stages?
Why do we use link partitioner and link collector in datastage?
Difference between sequential file and data set?
how to connect source to db?generally what r stages u used? how to find the data is having delimiter format?
What is the difference between the local container and shared container?