How do you take only duplicate rows in target table in Informatica

Questions by ravi214u   answers by ravi214u

Showing Answers 1 - 12 of 12 Answers

sunil saini

  • Feb 27th, 2007
 

you can do one thing
you use rank transformation make range according the field which represinting duplicasy rows that have more then 1 rank put  get only those rows in target table

  Was this answer useful?  Yes

Rvinder Ravula

  • Apr 3rd, 2007
 

Dear Friend

select * from table_name where rowid not in(select max(rowid) from table_name group by key_column_name);

this query display's the all the duplicate values ...

i dont know in inofrmatica can we write this query in sqloverride ...is it possible???


Thanks
Ravinder Ravula

  Was this answer useful?  Yes

koustav

  • Jul 31st, 2007
 

i think you can write the sql query (delete from....) in session post-sql command and it will work good.

  Was this answer useful?  Yes

Hi,

One way of getting only the duplicate columns loaded in the target table is to modify the SQ query:

When primary keys are defined:

select * from where exists (select PK1,PK2,... from
group by PK1,PK2,...
having count(*) > 1)


When primary keys are not defined:

select * from
group by
having count(*) > 1

Thanks.



  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions