11 лаба от Вадима

This commit is contained in:
2022-10-28 01:00:39 +03:00
parent b4cf7ebb8c
commit 3bbdf902e7
4 changed files with 76 additions and 0 deletions

14
Lab11_Vadim/ex1.sql Normal file
View 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]