Hi,
I have a question regarding deletion of rows from a relational target. I want to mark the source rows as 'Delete' and check the 'Delete' option for the target, so that if a source row already exists in the target table, it should be deleted.
Firstly, I need to have a PK constraint defined on the target table, otherwise the delete will not work. Secondly, let's say I want to delete multiple rows in the target based on a non-key value. e.g. the key for the target table is ID which will obviously have a unique value for each row, but I want to delete all the rows where DESCRIPTION column has a value of 'NA'. This value may be used by multiple rows having different IDs. How can I tell Informatica to do this. By default, the Delete statement it creates goes like 'DELETE FROM x WHERE ID = ?'.
Thanks.
I have a question regarding deletion of rows from a relational target. I want to mark the source rows as 'Delete' and check the 'Delete' option for the target, so that if a source row already exists in the target table, it should be deleted.
Firstly, I need to have a PK constraint defined on the target table, otherwise the delete will not work. Secondly, let's say I want to delete multiple rows in the target based on a non-key value. e.g. the key for the target table is ID which will obviously have a unique value for each row, but I want to delete all the rows where DESCRIPTION column has a value of 'NA'. This value may be used by multiple rows having different IDs. How can I tell Informatica to do this. By default, the Delete statement it creates goes like 'DELETE FROM x WHERE ID = ?'.
Thanks.