why error 'Msg 2627, Level 14, State 1, Line 12 Violation of PRIMARY KEY constraint 'PK_CONTACTROLS_PRIMARYKEY'. Cannot insert duplicate key in object 'dbo.CONTACTROLS'. The duplicate key value is (15, 1). The statement has been terminated.' apperes when i try to update the record with 'IT Support Specialist ' to 'Developer'
SET CR.ROLEIDS = (SELECT
WHERE ROLETITLE = 'Developer')
FROM CONTACTROLS AS CR
INNER JOIN ROLES AS R
ON CR.ROLEIDS = R.ROLEID
WHERE R.ROLETITLE = 'IT Support Specialist'
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)