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
What is the difference between the local container and shared container?
explain about completely flow of sequencers technicaly,without using example??explain about lookup,nullhandling?
Explain Quality stage?
How do you generate sequence number in datastage?
Name the third party tools that can be used in datastage?
what should be ensure to run the sequence job so that if its get aborted in 10th job before 9job should get succeeded?
Differentiate between operational datastage (ods) and data warehouse?
How you can fix the truncated data error in datastage?
What are data elements?
How to read the length of word in unix?
What are the main differences you have observed between 7.x and 8.x version of datastage?
What are iconv and oconv?
How do y read Sequential file from job control?
project Steps,hits, Project level HArd things,Solved methods?
how to export or import the jobs in .ISX file