from 1 to 1 .. *
Create a foreign key from the parent table into the primary key of the child element (lookup table).
CREATE TABLE A ( id int NOT NULL IDENTITY(1,1) PRIMARY KEY, Somecolumn int, SomeOtherColumn Varchar(50), B_id int CONSTRAINT FOREIGN KEY REFERENCES B(id),
from 1 to 0..1
Create a table with a primary key, also defined as a foreign key for the parent table
CREATE TABLE [Master] ( id int NOT NULL IDENTITY(1,1) PRIMARY KEY, Somecolumn int, SomeOtherColumn Varchar(50),
source share