11 лаба от Вадима
This commit is contained in:
14
Lab11_Vadim/ex1.sql
Normal file
14
Lab11_Vadim/ex1.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
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]
|
||||
Reference in New Issue
Block a user