Prevent the acceptance of orders from customers who do not pay their bills by ensuring that any order accepted comes from a customer whose name is on a "customers in good standing" list.
ORDERS.CUSTOMER_NAME to PAYING_CUSTOMERS.COMPANY_NAME
EXEC SQL
ALTER TABLE ORDERS ADD FOREIGN KEY
(CUSTOMER_NAME) REFERENCES PAYING_CUSTOMERS(COMPANY_NAME)
CONSTRAINT ORDERS_TO_PAYING_CUST_NAME
END-EXEC
|
Copyright © 2014 CA.
All rights reserved.
|
|