Code has been added to clipboard!

Naming and Using SQL FOREIGN KEY

Example
CREATE TABLE Orders (
    OrderID int NOT NULL,
    DeveloperID int,
    PRIMARY KEY (OrderID),
    CONSTRAINT FK_DeveloperOrder FOREIGN KEY (DeveloperID)
    REFERENCES Developers(DeveloperID)
);