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
Can anyone tell me a difficult situation who have handled while creating Datastage jobs?
Nls stands for what in datastage?
What is the difference between odbc and drs stage?
Difference between ‘validated ok’ and ‘compiled’ in data stage?
On which Dimension Table you implemented SCD Type in your Project
table actions available in oracle connector?
What are the various kinds of containers available in datastage?
What is use Array size in datastage
How to manage date conversion in Datastage?
Highlight the main features of datastage?
How to write a expression to display the first letter in Caps in each word using transformer stage ? Please let me know ASAP Thanks in advance...
If you want to use the same piece of code in different jobs, how will you achieve it?
i WANTED TO USE THE RANGE LOOKUP SCENARIO IN DATASTAGE 7.5.2 SRVER JOB.i HAVE A DATE FIELD IN SOURCE AND I SHOULD MATCH IT WITH A FIELD IN LOOKUP FILE.BUT,THE FIELDS SHOULD MATCH EVEN THOUGH THERE IS SOME RANGE.CAN SOMEONE TELL ME HOW CAN I DO THAT. THANKS
What are sequencers?
Can you highlight the main features of ibm infosphere information server?