0
CREATE TABLE TB_Empregado(
nome varchar(50),
rg int primary key,
cpf varchar (11),
salario money
)
---
CREATE TABLE TB_Dependente(
rg_responsavel int constraint fk_TB_Dependente_Empregado references TB_Empregado(rg),
nome_dependente varchar (50),
data_nascimento date,
relacao varchar(45),
sexo char(1),
primary key (rg_responsavel, nome_dependente)
)
I need to create a TRIGGER that automatically updates the ID of the head of a dependent whenever it (employee ID) is updated in the employee table