This repository has been archived on 2024-12-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Databases/Lab6/Task1.sql

10 lines
385 B
SQL

USE AdventureWorks
CREATE TABLE HumanResources.JobCandidateHistory
(
JobCandidateID int NOT NULL UNIQUE,
Resume xml NULL,
Rating int NOT NULL CONSTRAINT CK_JobCandidateHistory_Rating CHECK(Rating BETWEEN 1 AND 10) CONSTRAINT DF_JobCandidateHistory_Rating DEFAULT 5,
RejectDate datetime NOT NULL,
ContactID int NULL,
FOREIGN KEY (ContactID) REFERENCES Person.Contact(ContactID)
);