[Homework Data Definition and Data Types] Problem 4. Insert Records in Both Tables
Имам проблем при submit на заявката ми:
INSERT INTO Minions(Id, Name, Age, TownId)
VALUES (1, 'Kevin', 22, 1),
(2,'Bob',15, 3),
(3,'Steward',NULL, 2)
INSERT INTO Towns (Id, Name)
VALUES(1,'Sofia'),
(2,'Plovdiv'),
(3,'Varna')
Получавам Compile Time Error
The INSERT statement conflicted with the FOREIGN KEY constraint "FK_Minions_Towns". The conflict occurred in database "68ebb5c6-4283-45d9-a4a3-6adb9b27b13f", table "dbo.Towns", column 'Id'.
The statement has been terminated.
Как да премахна конфликта, идващ от Id на Towns?