14 lines
461 B
Transact-SQL
14 lines
461 B
Transact-SQL
use AdventureWorks
|
|
|
|
go
|
|
|
|
create table HumanResources.JobCandidateHistory(
|
|
JobCandidateID int not null unique,
|
|
Resume xml null,
|
|
Rating int not null constraint DF_JobCandidateHistory_Rating default 5,
|
|
RejectedDate datetime not null,
|
|
ContactID int null,
|
|
constraint FK_JobCandidateHistory_Contact_ContactID
|
|
foreign key(ContactID) references Person.Contact(ContactID),
|
|
constraint CK_JobCandidateHistory_Rating check (Rating >=0 and Rating<=10)
|
|
) on [PRIMARY] |