|
create table PO
(
PONO COUNTER constraint pk_PO primary key,
PODate date,
Buyer varchar(6),
Vendor varchar(6),
.....
)
create table POitem
(
PONO long constraint fk_POitem_PO references PO(PONO),
POITEMNO integer,
MaterialNo varchar(8),
Qty double,
Price currency,
Uom varchar(10),
Amt currency,
deliverDay date,
...
constraint pk_POitem PRIMARY KEY (PONO,POITEMNO)
)
create table GoodReceiving
(
GRNO COUNTER constraint pk_GoodReceiving primary key,
MaterialNo varchar(8),
Qty double,
BatchNo varchar(10),
Price currency,
Amt currency,
GRdate date,
PONO long,
POitem integer,
constraint fk_GoodReceiving_POitem FOREIGN KEY (PONO,POITEMNO) REFERENCES POitem (PONO,POITEMNO)
)
******************
* 一切皆有可能 *
******************
.
ACMAIN - Access论坛回贴准则(个人).
.
同一贴子不回复第二次
|
|