Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

foreign key

USE Organization
CREATE TABLE Employee_Office
(
Id INT PRIMARY KEY IDENTITY(1,1),
Emp_Id int FOREIGN KEY REFERENCES Employee(Id),
Office_Id int FOREIGN KEY REFERENCES Office(Id)
)
Source by codingsight.com #
 
PREVIOUS NEXT
Tagged: #foreign #key
ADD COMMENT
Topic
Name
7+5 =