Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

add check constarint on CREATE TABLE Customer ( CustNo CHAR ( 8 ) , CustFirstName VARCHAR 2 ( 2 0 )

add check constarint on

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) CONSTRAINT Customer_CustState CHECK (CustState IN ('CO', 'CA', 'WA', 'AZ', 'UT', 'NV', 'ID', 'OR')),

CustZip CHAR(10),

CustBal DECIMAL(12,2) DEFAULT 0, 

CONSTRAINT PKCustomer PRIMARY KEY (CustNo),

 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Linear Algebra And Its Applications

Authors: David Lay, Steven Lay, Judi McDonald

6th Global Edition

978-1292351216, 1292351217

More Books

Students also viewed these Programming questions

Question

Why is the national security argument for tariffs questionable?

Answered: 1 week ago