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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!