I have 2 tables:
Table "Group_OU_Relation":
GrpOUID | GID | OUID
--------------------
.... | ... | ...
Table "Functions_Folders":
FFID | GrpOUID | ParentId
-------------------------
.... | ... | ...
Now I want to make a Foreign Key Constraint in table "Functions_Folders", where column "GrpOUID" references column "GrpOUID" in table "Group_OU_Relation". I get the following error, why?
ALTER TABLE statement conflicted with COLUMN FOREIGN KEY constraint "Group_OU_Funct_Folders". The Conflict occured in Database xy, table "Group_OU_Relation", column "GrpOUID".
Table "Group_OU_Relation":
GrpOUID | GID | OUID
--------------------
.... | ... | ...
Table "Functions_Folders":
FFID | GrpOUID | ParentId
-------------------------
.... | ... | ...
Now I want to make a Foreign Key Constraint in table "Functions_Folders", where column "GrpOUID" references column "GrpOUID" in table "Group_OU_Relation". I get the following error, why?
ALTER TABLE statement conflicted with COLUMN FOREIGN KEY constraint "Group_OU_Funct_Folders". The Conflict occured in Database xy, table "Group_OU_Relation", column "GrpOUID".