Im not sure why this constraint isn't enforced. it's supposed to be enforced for the table payment attribute payment type. The table schema is
payment(orderId, orderNum, paymentType, totalCost)
alter table payment
add constraint paymentType
check(value in ('C', 'D', '$'))
Open in new window