Hello,I need to create a One to One relationship.The two tables are Users and Profiles:create table dbo.Users( Id int identity not null constraint Users_Id_PK primary key clustered (Id), Username nvarchar (40) not null);create table dbo.Profiles( Id int not null constraint Profiles_UserId_PK primary key clustered (UserId), [Name] nvarchar (80) not null );alter table dbo.Profilesadd constraint Profiles_UserId_FK foreign key (Id) references Users (Id) on delete cascade on update cascade;
If I am not wrong this is a One to Many relationship ...I am trying to split Users into 2 tables: Users and Profiles.What is the correct way to have a One to One relationship?Thank You,Miguel