foreign key multiple columns

Solutions on MaxInterview for foreign key multiple columns by the best coders in the world

showing results for - "foreign key multiple columns"
Enrico
17 Sep 2019
1CREATE TABLE Employee(
2    EmployeeID int NOT NULL PRIMARY KEY,
3    LastName varchar(50) NOT NULL,
4    FirstName varchar(20) NOT NULL,
5    Age int,
6    DeptNo int,
7    PRIMARY KEY (EmployeeID),
8    CONSTRAINT FK_PersonOrder FOREIGN KEY (DeptNo)
9    REFERENCES Department(DeptNo)
10);
11