Question: Need help fixing a constraint for a DB as well as the test of the constraint. Tables: Constraint I tried creating: ALTER TABLE ORDERS add

Need help fixing a constraint for a DB as well as the test of the constraint.

Tables:

Need help fixing a constraint for a DB as well as the

Constraint I tried creating:

ALTER TABLE ORDERS add constraint check_shipping_date SHIP_DATE >= ORDER_DATE;

Need to get constraint fixed (invalid datatype) and need script to verify constraint works.

E- CUSTOMERS CUSTOMERID - CUSTOMER-NAME CUSTOMER-SEGMENT CUSTOMERCOUNTRY CUSTOMER CITY CUSTOMER STATE CUSTOMERPOSTALCODE - - - CUSTOMER REGION ]ORDER ITEMS ORDER ID PRODUCT ID CATEGORY SUBCATEGORY PRODUCT NAME - SALES QUANTITY DISCOUNT PROFIT ..ORDERS ORDER-ID ORDER-DATE SHIP. DATE SHIP MODE CUSTOMERID - SHIP-TO-COUNTRY SHIP-TO CITY SHIP-TO STATE SHIPTOPOSTALCODE SHIP-TO REGION - - - RETURNS ORDER NUMBER REASON

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!