Question: Write named CHECK constraints for the following integrity rules. Modify the CREATE TABLE statement to add the named CHECK constraints. CREATE TABLE Customer ( CustNo
Write named CHECK constraints for the following integrity rules. Modify the CREATE TABLE statement to add the named CHECK constraints.
CREATE TABLE Customer ( CustNo CHAR(8), CustFirstName VARCHAR2(20) CONSTRAINT CustFirstNameRequired NOT NULL, CustLastName VARCHAR2(30) CONSTRAINT CustLastNameRequired NOT NULL, CustStreet VARCHAR2(50), CustCity VARCHAR2(30), CustState CHAR(2), CustZip CHAR(10), CustBal DECIMAL(12,2) DEFAULT 0, CONSTRAINT PKCustomer PRIMARY KEY (CustNo) ) Customer balance is greater than or equal to 0. Customer state is one of CO, CA, WA, AZ, UT, NV, ID, or OR.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
