I have a table with the fields acct_id,program_id and a datestamp. Both the acct_id and program_id are primary keys.
An acct_id can have a different program_id in different years. So there are some duplicate acct_ids with different program_ids, depending on the year. An acct_id cannot have the same program_id duplicated in the same year.
When I try to make new insertions, I get this error message :
Violation of PRIMARY KEY constraint 'PK_tableName. Cannot insert duplicate key in object 'tableName'. The statement has been terminated.
How can I make insertion into this table?