

Seu próximo nível começa aqui
Seu desenvolvimento não pode ter limites. Garanta sua Assinatura Ilimitada e libere uma preparação completa com os melhores professores do Brasil.
Analise o diagrama apresentado a seguir na notação IDEF1X.

O comando SQL para a criação de tabela que está de acordo com esse modelo é:
create table R(
A1 int primary key,
A2 int,
A3 int,
constraint X1 foreign key (A2)
references R(A1),
constraint X2 foreign key (A3)
references R(A1))
create table R(
A1 int not null primary key,
A2 int,
A3 int,
constraint X1 foreign key (A2)
references R(A1),
constraint X2 foreign key (A3)
references R(A1))
create table R(
A1 int not null primary key,
A2 int,
A3 int,
constraint X1 foreign key (A1)
references R(A2),
constraint X2 foreign key (A1)
references R(A3))
create table R(
A1 int not null primary key,
A2 int foreign key (A3),
A3 int foreign key (A2))
create table R(
A1 int not null primary key,
A2 int foreign key (A1),
A3 int foreign key (A1))