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/Lab11_Vadim/ex1.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]