I have a Composite Primary Key (PK) based on 4 columns.
How to do DML (Insert, Update, Delete) based on the uniqueness of PK ?
here it goes in a bit detail
1) If the PK for the incoming record does not exist in the master table (database), create a new record.
Q: Can you please let me know asto how to implement this ?
2) If the PK for the incoming record exist in the master table (database), record is updated.
Q: How do we implement this ?
3) Lastly, if the master table contains records that are not part of the incoming records, these records are deleted from the master table.
Q: How do we put this in practice ?
Hope to you from you all.
Thanks and regards,
Friend33
How to do DML (Insert, Update, Delete) based on the uniqueness of PK ?
here it goes in a bit detail
1) If the PK for the incoming record does not exist in the master table (database), create a new record.
Q: Can you please let me know asto how to implement this ?
2) If the PK for the incoming record exist in the master table (database), record is updated.
Q: How do we implement this ?
3) Lastly, if the master table contains records that are not part of the incoming records, these records are deleted from the master table.
Q: How do we put this in practice ?
Hope to you from you all.
Thanks and regards,
Friend33