Good morning, my question is this, can I give several assignments to a primary key? At this moment I am making a database for an exercise of my university and I wanted to give several assignments to a single primary key but to the time to make the inserts will not let me make them I will leave my code.
**create table Integrantes(
nombre varchar (50),
id_integrante int,
contraseña varchar (100),
cc int,
telefono int,
correo varchar (100),
carrera varchar (100),
id_dependencia int,
id_formacion int,
PRIMARY KEY (id_integrante),
CONSTRAINT fk_Dependencia_Integrantes
FOREIGN KEY (id_dependencia) REFERENCES Dependencia(id_dependencia),
CONSTRAINT fk_Grupo_formacion_Integrantes
FOREIGN KEY (id_formacion) REFERENCES Grupo_formacion(id_formacion)
);
create table Grupo_investigacion(
id_grupoinvestigacion int,
id_integrante int,
PRIMARY KEY (id_grupoinvestigacion),
CONSTRAINT fk_Integrantes_Grupo_investigacion
FOREIGN KEY (id_integrante) REFERENCES Integrantes(id_Integrante)
);
insert into 'Grupo_investigacion' value(1,10);
insert into 'Grupo_investigacion' value(1,11);**
and he will not let me do the assignment because I'm repeating the primary key you know what I can do?