|
From: rob@xxxxxxxxx
CREATE TABLE TESTLIB/ORDLINE (
ORDERNBR INT NOT NULL,
ORDERLINE INT NOT NULL,
ACTIVE CHAR (1 ) NOT NULL,
ITEMNUMBER CHAR (15) NOT NULL,
ORDERQUANTITY DEC (15, 5),
SOMENBR INT NOT NULL,
CONSTRAINT ORDLINE PRIMARY KEY (ORDERNBR, ORDERLINE),
CONSTRAINT OrdlineOrdhead FOREIGN KEY (ORDERNBR)
REFERENCES TESTLIB/ORDHEAD (ORDERNBR),
CONSTRAINT OrdlineItems FOREIGN KEY (ITEMNUMBER)
REFERENCES TESTLIB/ITEMS (ITEMNUMBER),
CONSTRAINT OrdlineActive CHECK (ACTIVE in('0', '1') ),
CONSTRAINT OrdlinePositive CHECK (ORDERLINE > 0)
)
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.