Employees.sql 550 B

12345678910111213
  1. use [Sergeichev]
  2. create table Employees
  3. (
  4. Code_Employee int primary key identity(1,1) not null,
  5. Code_Post int foreign key references Posts(Code_Post),
  6. Name_Employee varchar(50) not null,
  7. Surname_Employee varchar(50) not null,
  8. Midname_Employee varchar(50) not null,
  9. Home_Address varchar(150) not null,
  10. Data_Passport varchar (11) check (Data_Passport like ('[1-9][0-9][0-9][0-9]-[0-9][0-9][0-9][0-9][0-9][0-9]')) not null,
  11. Telephone_Employee varchar(12) CHECK(Telephone_Employee like ('+7[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'))
  12. )