Загрузил Для Комэрции

pr 4

реклама
Create table tip_tovara(
code_tipa int primary key not null,
tip_tovara varchar(50)
);
create table
tovar (
code_tovara int primary key not null,
code_tipa int,
foreign key (code_tipa) references tip_tovara (code_tipa),
nomenkl_nomer int,
articul varchar(25),
kolsklad int
);
create table ed_izmerenia(
code_ed int primary key not null,
Name varchar(50)
);
create table contengent(
code_kontengenta int not null primary key,
name varchar(50),
adrec varchar(50),
inn varchar(12)
);
create table doljnost (
code_doljnosti int not null primary key,
doljnost varchar(50)
);
create table sotrudniki (
code_sotrudnika int not null primary key,
code_doljnosti int not null,
foreign key (code_doljnosti) references doljnost (code_doljnosti),
Familia varchar(25),
name varchar(25),
mobile_phone varchar(12)
);
create table nakladnaya (
code_nakladnoy int not null primary key,
code_kontengenta int not null,
foreign key (code_kontegenta) references contengent (code_kontengenta),
datas date not null
);
create table table sostav_nakladnoy (
code_sostava int not null,
foreign key (code_nakladnoy) references nakladnaya (code_naklodnoy),
code_tovara int not null,
foreign key (code_tovara)references tovar (code_tovara),
code_ed int not null,
foreign key (code_ed) references ed_izmerenia (code_ed),
price float not null,
kolnetto int,
kolnetto int
);
Скачать