I am trying to update the employee data in sqlite. Employee ssn number of two data is mistakenly swapped and now when i try to swap the data again with the code below:
UPDATE employee SET SSN=’666884444’ WHERE SSN = ‘123456789’;
UPDATE employee SET SSN=’123456789’ WHERE SSN = ‘666884444’;
it shows me the following error:
[16:51:19] Error while executing SQL query on database 'Company':
FOREIGN KEY constraint failed
Can someone please guide me with the query?